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

   **[Jacob 
Halsey](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER312451)**
 opened 
**[HTTPCORE-794](https://issues.apache.org/jira/browse/HTTPCORE-794?redirect=false)**
 and commented
   
   According to the docstring:
   
   "Parses textual representation of {`@code` Content-Type} value ignoring 
invalid charsets."
   
   However it is possible to get `IllegalCharsetNameException`  from this method
   
   e.g.
   
   ```java
   ContentType.parseLenient("text/event-stream;charset=ISO-8859-1'"); 
   ```
   
    
   
   this would appear to be different to the UnsupportedCharsetException already 
ignored:
   
   
https://github.com/apache/httpcomponents-core/blob/rel/v5.4.1/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java#L378
   
    
   
   
   ---
   
   **Affects:** 5.3.6
   
   **Backported to:** 
[5.4.2](https://github.com/apache/httpcomponents-core/milestone/105?closed=1)
   


-- 
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