Author: remy.maucherat(a)jboss.com
Date: 2008-05-03 12:55:40 -0400 (Sat, 03 May 2008)
New Revision: 608
Modified:
trunk/java/org/apache/coyote/http11/Http11AprProcessor.java
trunk/java/org/apache/coyote/http11/Http11Processor.java
trunk/webapps/docs/changelog.xml
Log:
- Allow disabling compression for the default mime types.
Modified: trunk/java/org/apache/coyote/http11/Http11AprProcessor.java
===================================================================
--- trunk/java/org/apache/coyote/http11/Http11AprProcessor.java 2008-05-02 21:56:55 UTC
(rev 607)
+++ trunk/java/org/apache/coyote/http11/Http11AprProcessor.java 2008-05-03 16:55:40 UTC
(rev 608)
@@ -485,8 +485,8 @@
*/
public void setCompressableMimeTypes(String compressableMimeTypes) {
if (compressableMimeTypes != null) {
+ this.compressableMimeTypes = null;
StringTokenizer st = new StringTokenizer(compressableMimeTypes,
",");
-
while (st.hasMoreTokens()) {
addCompressableMimeType(st.nextToken().trim());
}
Modified: trunk/java/org/apache/coyote/http11/Http11Processor.java
===================================================================
--- trunk/java/org/apache/coyote/http11/Http11Processor.java 2008-05-02 21:56:55 UTC (rev
607)
+++ trunk/java/org/apache/coyote/http11/Http11Processor.java 2008-05-03 16:55:40 UTC (rev
608)
@@ -432,8 +432,8 @@
*/
public void setCompressableMimeTypes(String compressableMimeTypes) {
if (compressableMimeTypes != null) {
+ this.compressableMimeTypes = null;
StringTokenizer st = new StringTokenizer(compressableMimeTypes,
",");
-
while (st.hasMoreTokens()) {
addCompressableMimeType(st.nextToken().trim());
}
Modified: trunk/webapps/docs/changelog.xml
===================================================================
--- trunk/webapps/docs/changelog.xml 2008-05-02 21:56:55 UTC (rev 607)
+++ trunk/webapps/docs/changelog.xml 2008-05-03 16:55:40 UTC (rev 608)
@@ -38,7 +38,7 @@
</fix>
<fix>
<bug>43343</bug>: Correctly handle the case where a request arrives
for a session
- we are in the middle of persisting. (remm)
+ we are in the middle of persisting. (markt)
</fix>
<fix>
<bug>43150</bug>: Improve URL conversion so that some more special
chars can be used
@@ -52,6 +52,10 @@
<jboss-jira>JBCTS-779</jboss-jira>: Exception types for invalid
charset (should return the
java.io exception rather than the java.nio one). (remm)
</fix>
+ <fix>
+ <bug>43191</bug>: No way to turn off compression for some mime-types.
Based on a patch
+ by Len Popp. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">
Show replies by date