Skip to content

Commit

Permalink
squash: fix bad refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
arielvalentin committed Mar 2, 2023
1 parent 999594e commit 5261676
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ def on_finish(request, response)

EMPTY_HASH = {}.freeze
def extract_request_headers(env)
return EMPTY_HASH if @allowed_request_headers.empty?
return EMPTY_HASH if allowed_request_headers.empty?

@allowed_request_headers.each_with_object({}) do |(key, value), result|
allowed_request_headers.each_with_object({}) do |(key, value), result|
result[value] = env[key] if env.key?(key)
end
end
Expand Down

0 comments on commit 5261676

Please sign in to comment.