The ZipUrlInstaller sends incorrect Accept headers, which some Web servers reject with an HTTP 406 error

Description

When downloading a ZIP, the Accept header does not include the ZIP mimetype and some web servers may reject this with an HTTP 406 error. Set the Accept header to a wildcard to fix this.

The bug that causes this is actually https://bugs.openjdk.java.net/browse/JDK-8163921 - Which is part of the JDK, and even the latest (JDK 11 LTS) sun.net.www.protocol.http.HttpURLConnection have the same, broken definition.

Read more on: https://github.com/codehaus-cargo/cargo/pull/132 and https://groups.google.com/forum/#!topic/codehaus-cargo/81SzGigBjmQ

Activity

Show:
S. Ali Tokmen
July 7, 2020, 7:20 PM

Assignee

S. Ali Tokmen

Reporter

S. Ali Tokmen

Components

Fix versions

Priority

Major
Configure