Jacob Halsey created HTTPCORE-794:
-------------------------------------
Summary: 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
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]