summaryrefslogtreecommitdiff
path: root/test/webrick/webrick.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'test/webrick/webrick.cgi')
-rw-r--r--test/webrick/webrick.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/webrick/webrick.cgi b/test/webrick/webrick.cgi
index ac525fb07d7..9edbb13847e 100644
--- a/test/webrick/webrick.cgi
+++ b/test/webrick/webrick.cgi
@@ -12,6 +12,10 @@ class TestApp < WEBrick::CGI
"#{key}=#{v}"
}.join(", ")
}.join(", ")
+ elsif %r{/$} =~ req.request_uri.to_s
+ res.body = ""
+ res.body << req.request_uri.to_s << "\n"
+ res.body << req.script_name
else
res.body = req.script_name
end