Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5787

HttpClient does not support charset name with quotation mark around

    Details

      Description

      In RFC2045 (Section 5.1) there is:
      "Content-type: text/plain; charset=us-ascii (Plain text)
      Content-type: text/plain; charset="us-ascii"
      are completely equivalent".

      In current revision, if the 'Content-Type' of http response includes the quotation mark around the charset name, HttpClient throws out unsupported encoding exception.

        Activity

        Hide
        utcb Leon added a comment -

        remove quotation marks from charset name extracted from http response header.

        Show
        utcb Leon added a comment - remove quotation marks from charset name extracted from http response header.
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Leon,

        Your patch is in
        Trunk r1627230
        R13.07 r1627232
        R12.04 r1627233
        R11.04 r1627234

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Leon, Your patch is in Trunk r1627230 R13.07 r1627232 R12.04 r1627233 R11.04 r1627234

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            utcb Leon
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development