From 2790badf6d49be073393373fcf7d753816261f89 Mon Sep 17 00:00:00 2001 From: Michael Gorovoy Date: Thu, 21 Jul 2011 13:11:36 -0400 Subject: [PATCH] 352786 GzipFilter fails to pass parameters to GzipResponseWrapper --- VERSION.txt | 3 ++- .../java/org/eclipse/jetty/server/handler/GzipHandler.java | 6 +++--- .../main/java/org/eclipse/jetty/servlets/GzipFilter.java | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index b3e79a2087b..5ce297f61c8 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -5,7 +5,8 @@ jetty-7.5.0-SNAPSHOT + 352046 Need try/catch around features set in XmlParser + 352176 xml parsing on startElement should be more flexible on using qName or localName + 352684 Implemented spinning thread analyzer - + + 352786 GzipFilter fails to pass parameters to GzipResponseWrapper + jetty-7.4.4.v20110707 July 7th 2011 + 308851 Converted all jetty-client module tests to JUnit 4 + 345268 JDBCSessionManager does not work with maxInactiveInterval = -1 diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/GzipHandler.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/GzipHandler.java index 003846cfc4d..41aeb8e7a34 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/GzipHandler.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/GzipHandler.java @@ -278,9 +278,9 @@ public class GzipHandler extends HandlerWrapper return new GzipResponseWrapper(request, response) { { - _mimeTypes = GzipHandler.this._mimeTypes; - _bufferSize = GzipHandler.this._bufferSize; - _minGzipSize = GzipHandler.this._minGzipSize; + setMimeTypes(GzipHandler.this._mimeTypes); + setBufferSize(GzipHandler.this._bufferSize); + setMinGzipSize(GzipHandler.this._minGzipSize); } @Override diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java index e48cb702847..ccd35a81b83 100644 --- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java +++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java @@ -191,9 +191,9 @@ public class GzipFilter extends UserAgentFilter return new GzipResponseWrapper(request, response) { { - _mimeTypes = GzipFilter.this._mimeTypes; - _bufferSize = GzipFilter.this._bufferSize; - _minGzipSize = GzipFilter.this._minGzipSize; + setMimeTypes(GzipFilter.this._mimeTypes); + setBufferSize(GzipFilter.this._bufferSize); + setMinGzipSize(GzipFilter.this._minGzipSize); } @Override