fix downloader bug due to Oracle response code change

This commit is contained in:
Ben Fry
2018-11-12 06:02:56 -05:00
parent db5cff7128
commit ad2e2baf2e
+1 -1
View File
@@ -120,7 +120,7 @@ public class Downloader extends Task {
//printHeaders(conn);
//conn.connect();
while (conn.getResponseCode() == 302) {
while (conn.getResponseCode() == 302 || conn.getResponseCode() == 301) {
Map<String, List<String>> headers = conn.getHeaderFields();
List<String> location = headers.get("Location");
if (location.size() == 1) {