mirror of
https://github.com/processing/processing4.git
synced 2026-02-08 08:09:32 +01:00
@@ -835,11 +835,11 @@
|
||||
-->
|
||||
|
||||
<!-- use the jre subfolder when having downloaded a JDK file -->
|
||||
<condition property="jre.dir" value="jdk${jdk.esoteric}/jre/">
|
||||
<condition property="jre.dir" value="jdk${jdk.esoteric}/jre">
|
||||
<!-- property might not be set, but it is for arm -->
|
||||
<equals arg1="${jre.download.jdk}" arg2="true" />
|
||||
</condition>
|
||||
<condition property="jre.dir" value="jre${jdk.esoteric}/">
|
||||
<condition property="jre.dir" value="jre${jdk.esoteric}">
|
||||
<not>
|
||||
<equals arg1="${jre.download.jdk}" arg2="true" />
|
||||
</not>
|
||||
|
||||
@@ -158,8 +158,10 @@ public class Downloader extends Task {
|
||||
}
|
||||
List<String> cookies = headers.get("Set-Cookie");
|
||||
conn = (HttpURLConnection) new URL(url).openConnection();
|
||||
for (String cookie : cookies) {
|
||||
conn.setRequestProperty("Cookie", cookie);
|
||||
if (cookies != null) {
|
||||
for (String cookie : cookies) {
|
||||
conn.setRequestProperty("Cookie", cookie);
|
||||
}
|
||||
}
|
||||
conn.setRequestProperty("Cookie", COOKIE);
|
||||
conn.connect();
|
||||
|
||||
Reference in New Issue
Block a user