Changeset 9188 for trunk/actionpack/lib/action_controller/integration.rb
- Timestamp:
- 04/01/08 06:11:40 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/integration.rb
r8978 r9188 307 307 # like cookies, status, headers, etc. 308 308 def parse_result 309 headers, result_body = @result.split(/\r\n\r\n/, 2)309 response_headers, result_body = @result.split(/\r\n\r\n/, 2) 310 310 311 311 @headers = Hash.new { |h,k| h[k] = [] } 312 headers.each_line do |line|312 response_headers.to_s.each_line do |line| 313 313 key, value = line.strip.split(/:\s*/, 2) 314 314 @headers[key.downcase] << value … … 320 320 end 321 321 322 @status, @status_message = @headers["status"].first. split(/ /)322 @status, @status_message = @headers["status"].first.to_s.split(/ /) 323 323 @status = @status.to_i 324 324 end