You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by al...@apache.org on 2007/05/31 17:14:39 UTC

svn commit: r543161 - /incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/CompressedPackageResource.java

Author: almaw
Date: Thu May 31 08:14:38 2007
New Revision: 543161

URL: http://svn.apache.org/viewvc?view=rev&rev=543161
Log:
WICKET-464 - Provide support for disabling gzip compression entirely for package resources.

Modified:
    incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/CompressedPackageResource.java

Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/CompressedPackageResource.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/CompressedPackageResource.java?view=diff&rev=543161&r1=543160&r2=543161
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/CompressedPackageResource.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/CompressedPackageResource.java Thu May 31 08:14:38 2007
@@ -264,6 +264,10 @@
 	 */
 	private boolean supportsCompression()
 	{
+		if (Application.get().getResourceSettings().getDisableGZipCompression())
+		{
+			return false;
+		}
 		WebRequest request = (WebRequest)WebRequestCycle.get().getRequest();
 		String s = request.getHttpServletRequest().getHeader("Accept-Encoding");
 		if (s == null)