/[Apache-SVN]
ViewVC logotype

Revision 1627234


Jump to revision: Previous Next
Author: jleroux
Date: Wed Sep 24 06:42:40 2014 UTC (9 years, 6 months ago)
Changed paths: 2
Log Message:
"Applied fix from trunk for revision: 1627230  " 
------------------------------------------------------------------------
r1627230 | jleroux | 2014-09-24 08:40:46 +0200 (mer. 24 sept. 2014) | 11 lignes

A patch from Leon for "HttpClient does not support charset name with quotation mark around" https://issues.apache.org/jira/browse/OFBIZ-5787

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.

This patch removes quotation marks from charset name extracted from http response header.

------------------------------------------------------------------------


Changed paths

Path Details
Directoryofbiz/branches/release11.04/ modified , props changed
Directoryofbiz/branches/release11.04/framework/base/src/org/ofbiz/base/util/HttpClient.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26