more robust handling of pathInfo only

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2546 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-11-20 22:46:39 +00:00
parent 4d6df56c12
commit cf583b1cfe
1 changed files with 2 additions and 2 deletions

View File

@ -379,7 +379,7 @@ public class DefaultServlet extends HttpServlet implements ResourceFactory
else
{
included = Boolean.FALSE;
servletPath = request.getServletPath();
servletPath = _pathInfoOnly?"/":request.getServletPath();
pathInfo = request.getPathInfo();
// Is this a Range request?
@ -388,7 +388,7 @@ public class DefaultServlet extends HttpServlet implements ResourceFactory
reqRanges = null;
}
String pathInContext=_pathInfoOnly?pathInfo:URIUtil.addPaths(servletPath,pathInfo);
String pathInContext=URIUtil.addPaths(servletPath,pathInfo);
boolean endsWithSlash=pathInContext.endsWith(URIUtil.SLASH);
// Can we gzip this request?