jira-importer opened a new issue, #885:
URL: https://github.com/apache/httpcomponents-core/issues/885

   **[Tamas 
Cservenak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cstamas)**
 opened 
**[HTTPCORE-382](https://issues.apache.org/jira/browse/HTTPCORE-382?redirect=false)**
 and commented
   
   One HTTP server serving up ZIP/JAR file sends this header in it's response:
   
   ```
   Content-Type: application/zip; charset=binary
   ```
   
   While this is _malformed_ header value (according to rfc2068 "Applications 
SHOULD limit their use of character sets to those defined by the IANA 
registry", and IANA does not define "binary"), HttpClient should be more robust 
IMO.
   
   In this case, it might accept the mime type `application/zip` only and just 
neglect the charset (that results in 
`java.nio.charset.UnsupportedCharsetException: binary` anyway), since 
`application/zip` is not a text subtype.
   
   
   ---
   
   **Affects:** 4.3.2
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to