From: <jbo...@li...> - 2006-01-24 08:55:50
|
Author: rem...@jb... Date: 2006-01-24 03:55:45 -0500 (Tue, 24 Jan 2006) New Revision: 2186 Modified: trunk/labs/jbossweb/src/share/classes/org/apache/catalina/connector/Response.java Log: - Remove useless charset. Modified: trunk/labs/jbossweb/src/share/classes/org/apache/catalina/connector/Response.java =================================================================== --- trunk/labs/jbossweb/src/share/classes/org/apache/catalina/connector/Response.java 2006-01-24 08:31:09 UTC (rev 2185) +++ trunk/labs/jbossweb/src/share/classes/org/apache/catalina/connector/Response.java 2006-01-24 08:55:45 UTC (rev 2186) @@ -606,20 +606,6 @@ throw new IllegalStateException (sm.getString("coyoteResponse.getWriter.ise")); - /* - * If the response's character encoding has not been specified as - * described in <code>getCharacterEncoding</code> (i.e., the method - * just returns the default value <code>ISO-8859-1</code>), - * <code>getWriter</code> updates it to <code>ISO-8859-1</code> - * (with the effect that a subsequent call to getContentType() will - * include a charset=ISO-8859-1 component which will also be - * reflected in the Content-Type response header, thereby satisfying - * the Servlet spec requirement that containers must communicate the - * character encoding used for the servlet response's writer to the - * client). - */ - setCharacterEncoding(getCharacterEncoding()); - usingWriter = true; outputBuffer.checkConverter(); if (writer == null) { |