Skip to content

Commit

Permalink
Merge pull request #744 from samlehman/datum_proxy_update
Browse files Browse the repository at this point in the history
Adjust the datum[proxy] for <2.3
  • Loading branch information
geemus committed Apr 15, 2021
2 parents 876273d + 048392d commit 470ba1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/excon/utils.rb
Expand Up @@ -50,7 +50,7 @@ def redact(datum)
if datum.has_key?(:password)
datum[:password] = REDACTED
end
if datum.has_key?(:proxy) && datum[:proxy]&.has_key?(:password)
if datum.has_key?(:proxy) && datum[:proxy] && datum[:proxy].has_key?(:password)
datum[:proxy] = datum[:proxy].dup
datum[:proxy][:password] = REDACTED
end
Expand Down

0 comments on commit 470ba1e

Please sign in to comment.