tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24970] - charset appended to content-type even if not text/*
Date Tue, 25 Nov 2003 18:16:13 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=24970>.
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=24970

charset appended to content-type even if not text/*





------- Additional Comments From remm@apache.org  2003-11-25 18:16 -------
Here's the patch.

Index: Response.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Response.java,v
retrieving revision 1.29
retrieving revision 1.31
diff -r1.29 -r1.31
157a158,161
>     /**
>      * Has the charset been explicitly set.
>      */
>     protected boolean charsetSet = false;
323a328
>         charsetSet = false;
473c478,479
< 	characterEncoding = charset;
---
>         characterEncoding = charset;
>         charsetSet=true;
545a552
>             charsetSet=true;
555,557c562,565
<         if (ret != null && characterEncoding != null) {
<             ret += ";charset=";
<             ret += characterEncoding;
---
>         if (ret != null 
>             && characterEncoding != null
>             && charsetSet) {
>             ret = ret + ";charset=" + characterEncoding;
589a598
>         charsetSet = false;

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


Mime
View raw message