From 83fa035d242a01f9af5a04dc6703cecc53d936a5 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 20 May 2013 13:41:10 +0000 Subject: * lib/webrick/httpservlet/filehandler.rb (set_dir_list): share title and h1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/httpservlet/filehandler.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') 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"
-- 
cgit v1.2.3