1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/webrick/cgi.rb (WEBrick::CGI#start): should set REMOTE_USER

to request.user attribute.

* lib/webrick/httpservlet/filehandler.rb
  (WEBrick::HTTPServlet::FileHandler#initialize): should expand
  the pathname of document root directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoyuzo 2004-09-16 09:14:27 +00:00
parent bbf3a04369
commit 051e1a0d10
3 changed files with 11 additions and 1 deletions

View file

@ -139,7 +139,7 @@ module WEBrick
def initialize(server, root, options={}, default=Config::FileHandler)
@config = server.config
@logger = @config[:Logger]
@root = root
@root = File.expand_path(root)
if options == true || options == false
options = { :FancyIndexing => options }
end