mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Fix a bug where redirected
is always true
This key was introduced in #1590 but it is likely that it has never worked as expected.
This commit is contained in:
parent
b8d88aa9a3
commit
833985d723
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ module Agents
|
|||
|
||||
# Deal with failures
|
||||
if measured_result.result
|
||||
final_url = boolify(interpolated['disable_redirect_follow']) ? url : measured_result.result.to_hash[:url]
|
||||
final_url = boolify(interpolated['disable_redirect_follow']) ? url : measured_result.result.env.url.to_s
|
||||
payload.merge!({ 'final_url' => final_url, 'redirected' => (url != final_url), 'response_received' => true, 'status' => current_status })
|
||||
# Deal with headers
|
||||
if local_headers.present?
|
||||
|
|
Loading…
Add table
Reference in a new issue