Ensure that the rooturl is interpreted as a directory.
[jsvc.git] / src / dolda / jsvc / j2ee / J2eeRequest.java
index 8eb8b90..9056e77 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));
            }