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:
hns 2002-08-30 15:26:57 +00:00
parent 251b9e0fa3
commit 921e4787cb

View file

@ -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) {