Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2100

MultipartEntityBuilder would not support HttpRFC6532Multipart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0.1
    • 5.0.2
    • HttpClient (classic)
    • 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!?

      Attachments

        Activity

          People

            Unassigned Unassigned
            luguohong luguohong
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: