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 [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to