Skip to content
This repository
Browse code

Merge [5635] from trunk.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5636 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 5b8bfc40e07f871c84c229d396d182cb96f6cb72 1 parent f83eedd
Jeremy Kemper authored November 26, 2006
2  actionpack/lib/action_controller/base.rb
@@ -891,7 +891,7 @@ def erase_redirect_results #:nodoc:
891 891
         response.redirected_to = nil
892 892
         response.redirected_to_method_params = nil
893 893
         response.headers['Status'] = DEFAULT_RENDER_STATUS_CODE
894  
-        response.headers.delete('location')
  894
+        response.headers.delete('Location')
895 895
       end
896 896
 
897 897
       # Erase both render and redirect results
2  actionpack/lib/action_controller/integration.rb
@@ -113,7 +113,7 @@ def host!(name)
113 113
       # performed on the location header.
114 114
       def follow_redirect!
115 115
         raise "not a redirect! #{@status} #{@status_message}" unless redirect?
116  
-        get(interpret_uri(headers["location"].first))
  116
+        get(interpret_uri(headers['Location'].first))
117 117
         status
118 118
       end
119 119
 
2  actionpack/lib/action_controller/test_process.rb
@@ -179,7 +179,7 @@ def error?
179 179
 
180 180
     # returns the redirection location or nil
181 181
     def redirect_url
182  
-      redirect? ? headers['location'] : nil
  182
+      redirect? ? headers['Location'] : nil
183 183
     end
184 184
 
185 185
     # does the redirect location match this regexp pattern?

0 notes on commit 5b8bfc4

Please sign in to comment.
Something went wrong with that request. Please try again.