mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix downloader bug due to Oracle response code change
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user