diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-22 12:11:43 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-22 12:11:43 +0000 |
commit | 11a5492791e6ed467a73bf20e0c7b6828bf0a3e2 (patch) | |
tree | 2f2539e73f691d2410b8a6e6d6ae6e8b61a9ea91 /railties/lib | |
parent | 7bba658200dec66944109e87e4908303b3b5b795 (diff) | |
download | rails-11a5492791e6ed467a73bf20e0c7b6828bf0a3e2.tar.gz rails-11a5492791e6ed467a73bf20e0c7b6828bf0a3e2.tar.bz2 rails-11a5492791e6ed467a73bf20e0c7b6828bf0a3e2.zip |
Removed SCRIPT_NAME from the WEBrick environment to prevent conflicts with PATH_INFO #896 [Nicholas Seckar] Removed ? from the dispatch.f/cgi redirect line to get rid of 'complete/path/from/request.html' => nil being in the @params now that the ENV[REQUEST_URI] is used to determine the path #895 [dblack/Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/webrick_server.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/webrick_server.rb b/railties/lib/webrick_server.rb index cc45867128..43acffab86 100644 --- a/railties/lib/webrick_server.rb +++ b/railties/lib/webrick_server.rb @@ -69,6 +69,7 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet def handle_dispatch(req, res, origin = nil) env = req.meta_vars.clone + env.delete "SCRIPT_NAME" env["QUERY_STRING"] = req.request_uri.query env["REQUEST_URI"] = origin if origin |