[
https://issues.apache.org/jira/browse/HTTPCORE-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18058715#comment-18058715
]
ASF subversion and git services commented on HTTPCORE-794:
----------------------------------------------------------
Commit 3298de4874aafb50265341aa5034fe0f36be3688 in httpcomponents-core's branch
refs/heads/master from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-core.git;h=3298de487 ]
HTTPCORE-794 - Fix parseLenient to ignore illegal charset names (#618)
> 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]