mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
maybe it wasn't cookies
This commit is contained in:
@@ -193,15 +193,15 @@ public class Downloader extends Task {
|
||||
// TODO should this just do one of the
|
||||
throw new BuildException("No redirect location provided");
|
||||
}
|
||||
List<String> cookies = headers.get("Set-Cookie");
|
||||
conn = (HttpURLConnection) new URL(url).openConnection();
|
||||
/*
|
||||
List<String> cookies = headers.get("Set-Cookie");
|
||||
if (cookies != null) {
|
||||
for (String cookie : cookies) {
|
||||
System.out.println("Setting cookie " + cookie);
|
||||
conn.setRequestProperty("Cookie", cookie);
|
||||
}
|
||||
}
|
||||
/*
|
||||
if (cookieMaybe.isPresent()) {
|
||||
conn.setRequestProperty("Cookie", cookieMaybe.get());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user