luguohong created HTTPCLIENT-2100:
-------------------------------------
Summary: MultipartEntityBuilder would not support
HttpRFC6532Multipart
Key: HTTPCLIENT-2100
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2100
Project: HttpComponents HttpClient
Issue Type: Improvement
Components: HttpClient (classic)
Affects Versions: 5.0.1
Reporter: luguohong
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]