Changeset 3924
- Timestamp:
- 03/18/06 15:09:27 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/integration.rb
r3923 r3924 31 31 # The remote_addr used in the last request. 32 32 attr_accessor :remote_addr 33 34 # The Accept header to send. 35 attr_accessor :accept 33 36 34 37 # A map of the cookies returned by the last response, and which will be … … 67 70 self.host = "www.example.test" 68 71 self.remote_addr = "127.0.0.1" 72 self.accept = "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" 69 73 70 74 unless @named_routes_configured … … 210 214 "CONTENT_LENGTH" => data ? data.length.to_s : nil, 211 215 "HTTP_COOKIE" => encode_cookies, 212 "HTTPS" => https? ? "on" : "off" 216 "HTTPS" => https? ? "on" : "off", 217 "HTTP_ACCEPT" => accept 213 218 ) 214 219