JETTY-1084

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@758 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Athena Yao 2009-08-25 06:06:08 +00:00
parent d61fdf343e
commit d89ab0be25
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ import javax.servlet.http.HttpServletResponseWrapper;
import org.eclipse.jetty.continuation.Continuation; import org.eclipse.jetty.continuation.Continuation;
import org.eclipse.jetty.continuation.ContinuationListener; import org.eclipse.jetty.continuation.ContinuationListener;
import org.eclipse.jetty.continuation.ContinuationSupport; import org.eclipse.jetty.continuation.ContinuationSupport;
import org.eclipse.jetty.http.HttpMethods;
import org.eclipse.jetty.util.ByteArrayOutputStream2; import org.eclipse.jetty.util.ByteArrayOutputStream2;
import org.eclipse.jetty.util.StringUtil; import org.eclipse.jetty.util.StringUtil;
import org.eclipse.jetty.util.log.Log; import org.eclipse.jetty.util.log.Log;
@ -112,7 +113,7 @@ public class GzipFilter extends UserAgentFilter
String ae = request.getHeader("accept-encoding"); String ae = request.getHeader("accept-encoding");
if (ae != null && ae.indexOf("gzip")>=0 && !response.containsHeader("Content-Encoding") if (ae != null && ae.indexOf("gzip")>=0 && !response.containsHeader("Content-Encoding")
&& !"HEAD".equals(request.getMethod())) && !HttpMethods.HEAD.equalsIgnoreCase(request.getMethod()))
{ {
if (_excluded!=null) if (_excluded!=null)
{ {