Revert previous commit. Plan to rework valve so this hack isn't required
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 8 Mar 2009 09:40:22 +0000 (09:40 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 8 Mar 2009 09:40:22 +0000 (09:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@751392 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/connector/Response.java

index d99a399..349b49d 100644 (file)
@@ -811,11 +811,9 @@ public class Response
         if (included)
             return;     
         
-        // Normally calls to this method after the getWriter has been invoked
-        // will be ignored. The exception allows the addDefaultCharsetValve to
-        // insert the default charset in appropriate circumstances 
-        if (usingWriter && (isCharacterEncodingSet ||
-                !getCharacterEncoding().equalsIgnoreCase(charset)))
+        // Ignore any call made after the getWriter has been invoked
+        // The default should be used
+        if (usingWriter)
             return;
 
         coyoteResponse.setCharacterEncoding(charset);