Merge "Fix getRequestURI for wrapped http requests served via plugins."
This commit is contained in:
commit
adf994f398
@ -624,8 +624,16 @@ class HttpPluginServlet extends HttpServlet
|
||||
|
||||
@Override
|
||||
public String getServletPath() {
|
||||
return ((HttpServletRequest) getRequest()).getRequestURI().substring(
|
||||
contextPath.length());
|
||||
return getRequestURI().substring(contextPath.length());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRequestURI() {
|
||||
String uri = super.getRequestURI();
|
||||
if (uri.startsWith("/a/")) {
|
||||
uri = uri.substring(2);
|
||||
}
|
||||
return uri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user