[ruby/webrick] Fix httpd error in CJK directory

[Bug #16753]

83cf440858
This commit is contained in:
Kazuhiro NISHIYAMA 2020-04-03 17:29:12 +09:00 committed by Hiroshi SHIBATA
parent 6742fcf553
commit e698bf1a7f
2 changed files with 14 additions and 1 deletions

View file

@ -324,7 +324,7 @@ module WEBrick
end
def set_filename(req, res)
res.filename = @root.dup
res.filename = @root.b
path_info = req.path_info.scan(%r|/[^/]*|)
path_info.unshift("") # dummy for checking @root dir