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

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

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCLIENT-2100:
------------------------------------------
    Issue Type: Bug  (was: Improvement)

[~luguohong] Looks like a bug to me. Probably copy-paste error.

Oleg 

> 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
>
> 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