You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/07/13 07:29:00 UTC

[jira] [Commented] (HTTPCLIENT-2100) MultipartEntityBuilder would not support HttpRFC6532Multipart

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17156523#comment-17156523 ] 

Michael Osipov commented on HTTPCLIENT-2100:
--------------------------------------------

That's indeed confusing. Can you provide a patch?

> 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
>            Priority: Major
>
> 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