From 193edfbfdbaffff177c44f70f15450390741b7d2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 14 Mar 2005 00:25:24 +0000 Subject: Removed the reliance on PATH_INFO as it was causing problems for caching and inhibited the new non-vhost support #822 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/request.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 46080b1318..429b3b9017 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -77,10 +77,6 @@ module ActionController (%r{^\w+\://[^/]+(/.*|$)$} =~ env['REQUEST_URI']) ? $1 : env['REQUEST_URI'] # Remove domain, which webrick puts into the request_uri. end - def path_info - (/^(.*)\.html$/ =~ env['PATH_INFO']) ? $1 : env['PATH_INFO'] - end - def protocol env["HTTPS"] == "on" ? 'https://' : 'http://' end @@ -90,7 +86,7 @@ module ActionController end def path - (path_info && !path_info.empty?) ? path_info : (request_uri ? request_uri.split('?').first : '') + request_uri ? request_uri.split('?').first : '' end def port -- cgit v1.2.3