From 31b093118fc70d6f5fa98b864357f5c0d68a45d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 9 Sep 2010 22:13:10 +0200 Subject: [PATCH] Treat error code 24 as redirect, too. --- src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java index 740b30a..e389f23 100644 --- a/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -336,7 +336,7 @@ public class FcpClient { if (!getFailed.getIdentifier().equals(identifier)) { return; } - if (getFailed.getCode() == 27) { + if ((getFailed.getCode() == 27) || (getFailed.getCode() == 24)) { /* redirect! */ String newUri = getFailed.getRedirectURI(); getResult.realUri(newUri); -- 2.7.4