Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5635

Show
Ignore:
Timestamp:
11/26/06 05:35:53 (2 years ago)
Author:
bitsweat
Message:

Use Location rather than location header.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/base.rb

    r5626 r5635  
    892892        response.redirected_to_method_params = nil 
    893893        response.headers['Status'] = DEFAULT_RENDER_STATUS_CODE 
    894         response.headers.delete('location') 
     894        response.headers.delete('Location') 
    895895      end 
    896896 
  • trunk/actionpack/lib/action_controller/integration.rb

    r5028 r5635  
    114114      def follow_redirect! 
    115115        raise "not a redirect! #{@status} #{@status_message}" unless redirect? 
    116         get(interpret_uri(headers["location"].first)) 
     116        get(interpret_uri(headers['Location'].first)) 
    117117        status 
    118118      end 
  • trunk/actionpack/lib/action_controller/test_process.rb

    r5512 r5635  
    180180    # returns the redirection location or nil 
    181181    def redirect_url 
    182       redirect? ? headers['location'] : nil 
     182      redirect? ? headers['Location'] : nil 
    183183    end 
    184184