diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-16 09:14:27 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-16 09:14:27 +0000 |
commit | d067491ac8cb5e6f4ebb1425ab7479c00960e727 (patch) | |
tree | e60b96a583c138ce7ea16ff07801d7f7b43126f4 /lib/webrick/cgi.rb | |
parent | 9c8177d9adca6739749c09a0394c7c00f4d2a8d0 (diff) | |
download | ruby-d067491ac8cb5e6f4ebb1425ab7479c00960e727.tar.gz ruby-d067491ac8cb5e6f4ebb1425ab7479c00960e727.tar.xz ruby-d067491ac8cb5e6f4ebb1425ab7479c00960e727.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@6913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/cgi.rb')
-rw-r--r-- | lib/webrick/cgi.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb index 62c61f519..5c38e42fc 100644 --- a/lib/webrick/cgi.rb +++ b/lib/webrick/cgi.rb @@ -61,6 +61,7 @@ module WEBrick else req.path_info = env["PATH_INFO"].dup end + req.user = env["REMOTE_USER"] res.request_method = req.request_method res.request_uri = req.request_uri res.request_http_version = req.http_version |