You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "luguohong (Jira)" <ji...@apache.org> on 2020/07/13 06:15:00 UTC
[jira] [Created] (HTTPCLIENT-2100) MultipartEntityBuilder would not
support HttpRFC6532Multipart
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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org