[
https://issues.apache.org/jira/browse/HTTPCLIENT-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-2100.
-------------------------------------------
Fix Version/s: 5.0.2
Resolution: Fixed
> MultipartEntityBuilder would not support HttpRFC6532Multipart
> -------------------------------------------------------------
>
> Key: HTTPCLIENT-2100
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2100
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 5.0.1
> Reporter: luguohong
> Priority: Major
> Fix For: 5.0.2
>
>
> In HttpClient 5.0.1
> i read the MultipartEntityBuilder's source code,
> {code:java}
> case EXTENDED:
> if
> (ContentType.MULTIPART_FORM_DATA.isSameMimeType(ContentType.MULTIPART_FORM_DATA))
> {
> if (charsetCopy == null) {
> charsetCopy = StandardCharsets.UTF_8;
> }
> form = new HttpRFC7578Multipart(charsetCopy, boundaryCopy,
> multipartPartsCopy);
> } else {
> form = new HttpRFC6532Multipart(charsetCopy, boundaryCopy,
> multipartPartsCopy);
> }
> break;
> {code}
> so, the HttpRFC6532Multipart would never be used,
> because of ContentType.MULTIPART_FORM_DATA ==
> ContentType.MULTIPART_FORM_DATA!?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]