diff --git a/lib/webrick/httpservlet/filehandler.rb b/lib/webrick/httpservlet/filehandler.rb index 711ba30176..3f609adbf5 100644 --- a/lib/webrick/httpservlet/filehandler.rb +++ b/lib/webrick/httpservlet/filehandler.rb @@ -439,12 +439,15 @@ module WEBrick res['content-type'] = "text/html" + title = "Index of #{HTMLUtils::escape(req.path)}" res.body = <<-_end_of_html_ - Index of #{HTMLUtils::escape(req.path)} + + #{title} + -

Index of #{HTMLUtils::escape(req.path)}

+

#{title}

_end_of_html_ res.body << "
\n"