From 7b440f7f3568028e63280646cfb071652bd81e94 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 25 Dec 2011 12:49:03 +0100 Subject: [PATCH] Schweren BUG in AccelarationFilter korrigiert Der Dekorator wurde gar nicht mit dem Handler aufgerufen! --- .../de/halbekunst/juplo/cachecontrol/AcceleratorFilter.java | 4 ++-- .../java/de/halbekunst/juplo/cachecontrol/HttpTestCase.java | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/AcceleratorFilter.java b/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/AcceleratorFilter.java index 992d9dc9..7c250a24 100644 --- a/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/AcceleratorFilter.java +++ b/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/AcceleratorFilter.java @@ -569,7 +569,7 @@ public class AcceleratorFilter implements Filter { @Override public void close() throws IOException { try { - AcceleratorFilter.this.cacheControl.decorate(AccelerationWrapper.this.request, response, buffer); + AcceleratorFilter.this.cacheControl.decorate(AccelerationWrapper.this.request, response, AccelerationWrapper.this); } catch (Exception e) { log.error("Error while guessing Cache-Header's", e); @@ -584,7 +584,7 @@ public class AcceleratorFilter implements Filter { @Override public void flush() throws IOException { try { - AcceleratorFilter.this.cacheControl.decorate(AccelerationWrapper.this.request, response, buffer); + AcceleratorFilter.this.cacheControl.decorate(AccelerationWrapper.this.request, response, AccelerationWrapper.this); } catch (Exception e) { log.error("Error while guessing Cache-Header's", e); diff --git a/cachecontrol/src/test/java/de/halbekunst/juplo/cachecontrol/HttpTestCase.java b/cachecontrol/src/test/java/de/halbekunst/juplo/cachecontrol/HttpTestCase.java index 6fe096ea..bd28c91b 100644 --- a/cachecontrol/src/test/java/de/halbekunst/juplo/cachecontrol/HttpTestCase.java +++ b/cachecontrol/src/test/java/de/halbekunst/juplo/cachecontrol/HttpTestCase.java @@ -7,8 +7,6 @@ import com.meterware.servletunit.ServletUnitClient; import java.io.IOException; import java.io.PrintWriter; import java.util.Enumeration; -import java.util.HashMap; -import java.util.Map; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -- 2.20.1