[ 
https://issues.apache.org/jira/browse/HTTPCORE-794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arturo Bernal closed HTTPCORE-794.
----------------------------------
    Resolution: Fixed

> ContentType parseLenient() throws IllegalCharsetNameException
> -------------------------------------------------------------
>
>                 Key: HTTPCORE-794
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-794
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 5.3.6
>            Reporter: Jacob Halsey
>            Priority: Minor
>             Fix For: 5.4.2, 5.5-alpha1
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.
> {code:java}
> ContentType.parseLenient("text/event-stream;charset=ISO-8859-1'"); {code}
>  
> 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]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to