From 2bacd22079557f2efcceb41ce542a61663c2b6da Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Mon, 26 Oct 2009 16:54:30 +0100 Subject: [PATCH] Ensure that the rooturl is interpreted as a directory. --- src/dolda/jsvc/j2ee/J2eeRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolda/jsvc/j2ee/J2eeRequest.java b/src/dolda/jsvc/j2ee/J2eeRequest.java index 8eb8b90..9056e77 100644 --- a/src/dolda/jsvc/j2ee/J2eeRequest.java +++ b/src/dolda/jsvc/j2ee/J2eeRequest.java @@ -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)); } -- 2.11.0