fixed endswithslash test

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2558 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-11-25 02:45:17 +00:00
parent 6c01234e7c
commit fca35e43a2
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ public class DefaultServlet extends HttpServlet implements ResourceFactory
}
String pathInContext=URIUtil.addPaths(servletPath,pathInfo);
boolean endsWithSlash=request.getRequestURI().endsWith(URIUtil.SLASH);
boolean endsWithSlash=(pathInfo==null?request.getServletPath():pathInfo).endsWith(URIUtil.SLASH);
// Can we gzip this request?
String pathInContextGz=null;