Skip to content

Commit

Permalink
Fix sha256 auth content header fetch for Rack driver
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorthurlow committed Apr 11, 2023
1 parent 1322051 commit ad9dd42
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/api_auth/request_drivers/rack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ def content_type
end

def content_hash
find_header(%w[X-AUTHORIZATION-CONTENT-SHA256])
find_header(%w[
HTTP_X_AUTHORIZATION_CONTENT_SHA256
X_AUTHORIZATION_CONTENT_SHA256
HTTP-X-AUTHORIZATION-CONTENT-SHA256
X-AUTHORIZATION-CONTENT-SHA256
])
end

def original_uri
Expand Down

0 comments on commit ad9dd42

Please sign in to comment.