diff options
Diffstat (limited to 'test/webrick/webrick.cgi')
-rw-r--r-- | test/webrick/webrick.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/webrick/webrick.cgi b/test/webrick/webrick.cgi index ac525fb07d..9edbb13847 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 |