You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2004/02/27 17:10:37 UTC
DO NOT REPLY [Bug 27295] New: -
wrong charset indication in HttpConstants.getContentString()
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