From: David ‘Bombe’ Roden Date: Thu, 9 Sep 2010 20:13:10 +0000 (+0200) Subject: Treat error code 24 as redirect, too. X-Git-Tag: v0.1.3^2~16 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=31b093118fc70d6f5fa98b864357f5c0d68a45d6;p=jFCPlib.git Treat error code 24 as redirect, too. --- 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);