jdk package: Fix fetching with curl 7.64.0+ (#11108)
Starting with version 7.64.0, curl skips cookies specified with "-H" (generic custom header specification) when following redirects, which causes the "accept-license"-cookie for jdk to disappear. The result is that jdk fails to download. This uses the "-b" option (which is used specifically for configuring cookies) instead, which is more permissive.
This commit is contained in:
parent
e86027d1f8
commit
56c233b0b7
@ -26,8 +26,8 @@ class Jdk(Package):
|
|||||||
# http://stackoverflow.com/questions/10268583/how-to-automate-download-and-installation-of-java-jdk-on-linux
|
# http://stackoverflow.com/questions/10268583/how-to-automate-download-and-installation-of-java-jdk-on-linux
|
||||||
curl_options = [
|
curl_options = [
|
||||||
'-j', # junk cookies
|
'-j', # junk cookies
|
||||||
'-H', # specify required License Agreement cookie
|
'-b', # specify required License Agreement cookie
|
||||||
'Cookie: oraclelicense=accept-securebackup-cookie'
|
'oraclelicense=accept-securebackup-cookie'
|
||||||
]
|
]
|
||||||
|
|
||||||
# To add the latest version, go to the homepage listed above,
|
# To add the latest version, go to the homepage listed above,
|
||||||
|
Loading…
Reference in New Issue
Block a user