luehe 2004/07/28 11:51:44 Modified: coyote/src/java/org/apache/coyote Response.java Log: Reverted previous patch, because it would reintroduce the problem of sending "image/gif; charset=iso-8859-1", which nobody can read. Revision Changes Path 1.34 +0 -28 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Response.java Index: Response.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Response.java,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- Response.java 28 Jul 2004 00:43:17 -0000 1.33 +++ Response.java 28 Jul 2004 18:51:44 -0000 1.34 @@ -21,7 +21,6 @@ import org.apache.tomcat.util.buf.ByteChunk; import org.apache.tomcat.util.http.MimeHeaders; -import org.apache.tomcat.util.http.ContentType; /** * Response object. @@ -525,33 +524,6 @@ return ret; } - - /** - * Returns the value of the Content-Type response header, based on the - * current return value of getContentType(). - * - * Notice that while the charset parameter must be omitted from the - * return value of ServletResponse.getContentType() if no character - * encoding has been specified, the spec requires that a charset (default: - * ISO-8859-1) always be included in the Content-Type response header - * - * @return Value of Content-Type response header - */ - public String getContentTypeResponseHeader() { - - String header = getContentType(); - if (header != null) { - if (!ContentType.hasCharset(header)) { - // Must communicate response encoding to client - header = header + ";charset=" - + Constants.DEFAULT_CHARACTER_ENCODING; - } - } - - return header; - } - - public void setContentLength(int contentLength) { this.contentLength = contentLength; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]