Treat error code 24 as redirect, too.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 9 Sep 2010 20:13:10 +0000 (22:13 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 9 Sep 2010 20:13:10 +0000 (22:13 +0200)
src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java

index 740b30a..e389f23 100644 (file)
@@ -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);