Fixed #1833 Request.startAsycn requires a context

This commit is contained in:
Greg Wilkins 2017-09-21 14:09:21 +10:00
parent bddd5ca5de
commit 8abb108b7e
1 changed files with 1 additions and 1 deletions

View File

@ -2257,7 +2257,7 @@ public class Request implements HttpServletRequest
event.setDispatchContext(getServletContext());
String uri = ((HttpServletRequest)servletRequest).getRequestURI();
if (uri.startsWith(_contextPath))
if (_contextPath!=null && uri.startsWith(_contextPath))
uri = uri.substring(_contextPath.length());
else
// TODO probably need to strip encoded context from requestURI, but will do this for now: