hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27295] New: - wrong charset indication in HttpConstants.getContentString()
Date Fri, 27 Feb 2004 16:10:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27295>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27295

wrong charset indication in HttpConstants.getContentString()

           Summary: wrong charset indication in
                    HttpConstants.getContentString()
           Product: Commons
           Version: 2.0 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HttpClient
        AssignedTo: commons-httpclient-dev@jakarta.apache.org
        ReportedBy: zartc@wanadoo.fr


Around line 236 in HttpConstants.getConstentString() the charset is wrongly indicated as 
"DEFAULT_CONTENT_CHARSET" where it should have been indicated as "charset" like in the 
getContentBytes function.

            if (LOG.isWarnEnabled()) {
                LOG.warn("Unsupported encoding: " 
                    + DEFAULT_CONTENT_CHARSET // <== should be the variable "charset" here
                    + ". Default HTTP encoding used");
            }

Wrong copy/paste I guess :-)

ZC.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message