Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.0.1
-
None
Description
In HttpClient 5.0.1
i read the MultipartEntityBuilder's source code,
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;
so, the HttpRFC6532Multipart would never be used,
because of ContentType.MULTIPART_FORM_DATA == ContentType.MULTIPART_FORM_DATA!?