mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Make headers_to_save
case-insensitive
See [my comment](https://github.com/cantino/huginn/pull/1521#discussion_r86489253) in #1521.
This commit is contained in:
parent
833985d723
commit
cc28f780c5
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ module Agents
|
|||
payload.merge!({ 'final_url' => final_url, 'redirected' => (url != final_url), 'response_received' => true, 'status' => current_status })
|
||||
# Deal with headers
|
||||
if local_headers.present?
|
||||
header_results = measured_result.result.headers.select {|header, value| local_headers.include?(header)}
|
||||
header_results = measured_result.result.headers.slice(*local_headers)
|
||||
# Fill in headers that we wanted, but weren't returned
|
||||
local_headers.each { |header| header_results[header] = nil unless header_results.has_key?(header) }
|
||||
payload.merge!({ 'headers' => header_results })
|
||||
|
|
Loading…
Add table
Reference in a new issue