]> git.dolda2000.com Git - jsvc.git/commitdiff
Ensure that the rooturl is interpreted as a directory.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 26 Oct 2009 15:54:30 +0000 (16:54 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 26 Oct 2009 15:54:30 +0000 (16:54 +0100)
src/dolda/jsvc/j2ee/J2eeRequest.java

index 8eb8b90acf4d96d45cf2d6b0bd2f50e5ca865001..9056e77c98d78d5bf32c2a37d423f706396add18 100644 (file)
@@ -59,7 +59,7 @@ public class J2eeRequest extends ResponseBuffer {
                q = "";
            try {
                url = new URL(scheme, host, port, req.getContextPath() + req.getServletPath() + pi + q);
-               context = new URL(scheme, host, port, req.getContextPath());
+               context = new URL(scheme, host, port, req.getContextPath() + "/");
            } catch(MalformedURLException e) {
                throw(new Error(e));
            }