OK - here's a simple patch that just fixes the problem and doesn't change anything controversial :)
I will be glad to make the changes to include two new attributes on the connector to specify the list of uncompressible mime types and uncompressible user agents if a committer is willing to consider it. Index: Http11Processor.java =================================================================== RCS file: /home/cvspublic/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/ http11/Http11Processor.java,v retrieving revision 1.78 diff -r1.78 Http11Processor.java 462a463,478 > /** > * Checks if any entry in the string array starts with the specified value > * > * @param sArray the StringArray > * @param value string > */ > private boolean startsWithStringArray(String sArray[], String value) { > if (value == null) > return false; > for (int i = 0; i < sArray.length; i++) { > if (value.startsWith(sArray[i])) { > return true; > } > } > return false; > } 1216,1217c1232,1233 < if (compressableMimeTypes != null) < return (inStringArray(compressableMimeTypes, response.getContentType())); --- > if (compressableMimeTypes != null) > return (startsWithStringArray(compressableMimeTypes, response.getContentType())); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]