Issue #4765 - Review GzipHandler inside ServletContextHandler.
Restored IncludedGzipTest. Fixed ServletContextHandler.relinkHandlers(), now excluding the checks for GzipHandler. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
013acca012
commit
509f5791ff
|
@ -248,10 +248,8 @@ public class ServletContextHandler extends ContextHandler
|
|||
// link session handler
|
||||
if (getSessionHandler() != null)
|
||||
{
|
||||
|
||||
while (!(handler.getHandler() instanceof SessionHandler) &&
|
||||
!(handler.getHandler() instanceof SecurityHandler) &&
|
||||
!(handler.getHandler() instanceof GzipHandler) &&
|
||||
!(handler.getHandler() instanceof ServletHandler) &&
|
||||
handler.getHandler() instanceof HandlerWrapper)
|
||||
{
|
||||
|
@ -267,7 +265,6 @@ public class ServletContextHandler extends ContextHandler
|
|||
if (getSecurityHandler() != null)
|
||||
{
|
||||
while (!(handler.getHandler() instanceof SecurityHandler) &&
|
||||
!(handler.getHandler() instanceof GzipHandler) &&
|
||||
!(handler.getHandler() instanceof ServletHandler) &&
|
||||
handler.getHandler() instanceof HandlerWrapper)
|
||||
{
|
||||
|
|
|
@ -90,7 +90,7 @@ public class IncludedGzipTest
|
|||
|
||||
GzipHandler gzipHandler = new GzipHandler();
|
||||
gzipHandler.setMinGzipSize(16);
|
||||
tester.getServer().insertHandler(gzipHandler);
|
||||
tester.getContext().insertHandler(gzipHandler);
|
||||
tester.start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue