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) {
if (path == null)
return "";
int pathMatch = path.indexOf (mountpoint);
if (pathMatch > -1)
return trim (path.substring (pathMatch+mountpoint.length()));
else
return trim (path);
// We already get the correct request path
// from the servlet container.
return trim (path);
}
String trim (String str) {