click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From med...@apache.org
Subject svn commit: r782236 - in /incubator/click/trunk/click/extras/src/org/apache/click/extras/filter: CompressionFilter.java PerformanceFilter.java
Date Sat, 06 Jun 2009 11:44:55 GMT
Author: medgar
Date: Sat Jun  6 11:44:55 2009
New Revision: 782236

URL: http://svn.apache.org/viewvc?rev=782236&view=rev
Log:
gzip case insensitive image check

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/CompressionFilter.java
    incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/CompressionFilter.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/CompressionFilter.java?rev=782236&r1=782235&r2=782236&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/CompressionFilter.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/CompressionFilter.java
Sat Jun  6 11:44:55 2009
@@ -220,6 +220,9 @@
         }
 
         if (compressionThreshold > 0) {
+
+            path = path.toLowerCase();
+
             if (path.endsWith(".gif") || path.endsWith(".png") || path.endsWith(".jpg"))
{
                 return false;
             }

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java?rev=782236&r1=782235&r2=782236&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java
Sat Jun  6 11:44:55 2009
@@ -692,6 +692,8 @@
         }
 
         if (compressionThreshold > 0) {
+            path = path.toLowerCase();
+
             if (path.endsWith(".gif") || path.endsWith(".png") || path.endsWith(".jpg"))
{
                 return false;
             }



Mime
View raw message