summaryrefslogtreecommitdiff
path: root/lib/webrick/httpservlet/abstract.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webrick/httpservlet/abstract.rb')
-rw-r--r--lib/webrick/httpservlet/abstract.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpservlet/abstract.rb b/lib/webrick/httpservlet/abstract.rb
index 03861e8..5375c46 100644
--- a/lib/webrick/httpservlet/abstract.rb
+++ b/lib/webrick/httpservlet/abstract.rb
@@ -58,7 +58,7 @@ module WEBrick
def redirect_to_directory_uri(req, res)
if req.path[-1] != ?/
- location = req.path + "/"
+ location = WEBrick::HTTPUtils.escape_path(req.path + "/")
if req.query_string && req.query_string.size > 0
location << "?" << req.query_string
end