#3 - Redirect on status 30 (temporary redirect) as well as 31 (permanent redirect).
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main/java/com/ajtjp/geminiclient/GeminiClient.java
M src/main/java/com/ajtjp/geminiclient/GeminiClient.java +1 -1
@@ 47,7 47,7 @@ public class GeminiClient {
         InputStream is = s.getInputStream();
         doc.setHeaders(readHeaders(is));
         
-        if (doc.statusCode == 31) {
+        if (doc.statusCode == 30 || doc.statusCode == 31) {
             //TODO: Redirect loop detection
             //TODO: Insecure redirect warnings
             //TODO: Ports other than 1965 (this one applies elsewhere, too)