Skip to content

Commit

Permalink
Improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
sled committed Dec 12, 2021
1 parent a9de9db commit 811072f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faraday/request/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def header_from(type, *params)
raise ArgumentError, "Unexpected params received (got #{params.size} instead of 1)"
else
value = params.first
value = value.call if value.respond_to?(:call)
value = value.call if value.is_a?(Proc) || value.respond_to?(:call)
"#{type} #{value}"
end
end
Expand Down

0 comments on commit 811072f

Please sign in to comment.