[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-dev
Subject:    svn commit: r1825516 - in /tomcat/trunk: java/org/apache/coyote/CompressionConfig.java webapps/docs/
From:       markt () apache ! org
Date:       2018-02-27 22:55:12
Message-ID: 20180227225513.BD6383A00A5 () svn01-us-west ! apache ! org
[Download RAW message or body]

Author: markt
Date: Tue Feb 27 22:55:12 2018
New Revision: 1825516

URL: http://svn.apache.org/viewvc?rev=1825516&view=rev
Log:
Correct a regression in the fix for 60276 that meant that compression was applied to \
all MIME types. Patch provided by Stefan Knoblich.

Modified:
    tomcat/trunk/java/org/apache/coyote/CompressionConfig.java
    tomcat/trunk/webapps/docs/changelog.xml

Modified: tomcat/trunk/java/org/apache/coyote/CompressionConfig.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/CompressionConfig.java?rev=1825516&r1=1825515&r2=1825516&view=diff
 ==============================================================================
--- tomcat/trunk/java/org/apache/coyote/CompressionConfig.java (original)
+++ tomcat/trunk/java/org/apache/coyote/CompressionConfig.java Tue Feb 27 22:55:12 \
2018 @@ -203,7 +203,7 @@ public class CompressionConfig {
             }
 
             // Check for compatible MIME-TYPE
-            String[] compressibleMimeTypes = this.compressibleMimeTypes;
+            String[] compressibleMimeTypes = getCompressibleMimeTypes();
             if (compressibleMimeTypes != null &&
                     !startsWithStringArray(compressibleMimeTypes, \
response.getContentType())) {  return false;

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1825516&r1=1825515&r2=1825516&view=diff
 ==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Tue Feb 27 22:55:12 2018
@@ -112,6 +112,11 @@
         <code>docBase</code> and, as a result, a <code>docBase</code> under the
         <code>appBase</code> will be ignored, log a warning. (markt)
       </add>
+      <bug>
+        Correct a regression in the fix for <bug>60276</bug> that meant that
+        compression was applied to all MIME types. Patch provided by Stefan
+        Knoblich. (markt)
+      </bug>
     </changelog>
   </subsection>
   <subsection name="Coyote">



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic