diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-08 09:52:34 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-08 09:52:34 +0000 |
| commit | 7adf2333c9646cce73c4780c8edb08074446c827 (patch) | |
| tree | a9c74524a00d0730e7252a1780284c9001dbd608 /lib/webrick/httpservlet | |
| parent | 4d3a121e6eef0164f32a4042afca35caccef4c3b (diff) | |
| download | ruby-7adf2333c9646cce73c4780c8edb08074446c827.tar.gz ruby-7adf2333c9646cce73c4780c8edb08074446c827.tar.xz ruby-7adf2333c9646cce73c4780c8edb08074446c827.zip | |
* lib/webrick/accesslog.rb (AccessLog::setup_params): use req.port
instead of config[:Port] or req.request_uri.port.
* lib/webrick/httprequest.rb (HTTPRequest#meta_vars): ditto.
* lib/webrick/httpservlet/filehandler.rb (FileHandler#dir_list): ditto.
* lib/webrick/config.rb: :Listen option never be used.
* lib/webrick/server.rb (GenericServer#initialize): don't use :Listen
option and add warning message.
* lib/webrick/log.rb (BasicLog#<<): shortcut of log(INFO, ...).
* lib/webrick/httpserver.rb (HTTPServer#accesslog): use << for logging.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httpservlet')
| -rw-r--r-- | lib/webrick/httpservlet/filehandler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpservlet/filehandler.rb b/lib/webrick/httpservlet/filehandler.rb index f6db991bf..9e1a439b1 100644 --- a/lib/webrick/httpservlet/filehandler.rb +++ b/lib/webrick/httpservlet/filehandler.rb @@ -318,7 +318,7 @@ module WEBrick res.body << <<-_end_of_html_ <ADDRESS> #{HTMLUtils::escape(@config[:ServerSoftware])}<BR> - at #{req.request_uri.host}:#{@config[:Port]} + at #{req.host}:#{req.port} </ADDRESS> </BODY> </HTML> |
