Do not try to perform path translation relative to the servlet mountpoint
since this is done already by the servlet container.
This commit is contained in:
parent
251b9e0fa3
commit
921e4787cb
1 changed files with 3 additions and 5 deletions
|
@ -57,11 +57,9 @@ public final class EmbeddedServletClient extends AbstractServletClient {
|
||||||
String getRequestPath (String path) {
|
String getRequestPath (String path) {
|
||||||
if (path == null)
|
if (path == null)
|
||||||
return "";
|
return "";
|
||||||
int pathMatch = path.indexOf (mountpoint);
|
// We already get the correct request path
|
||||||
if (pathMatch > -1)
|
// from the servlet container.
|
||||||
return trim (path.substring (pathMatch+mountpoint.length()));
|
return trim (path);
|
||||||
else
|
|
||||||
return trim (path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String trim (String str) {
|
String trim (String str) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue