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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org