Skip to content

Commit 22a2cd9

Browse files
committed
Fix sha256 auth content header fetch for Rack driver
1 parent 1322051 commit 22a2cd9

File tree

1 file changed

+6
-1
lines changed
  • lib/api_auth/request_drivers

1 file changed

+6
-1
lines changed

lib/api_auth/request_drivers/rack.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ def content_type
5353
end
5454

5555
def content_hash
56-
find_header(%w[X-AUTHORIZATION-CONTENT-SHA256])
56+
find_header(%w[
57+
HTTP_X_AUTHORIZATION_CONTENT_SHA256
58+
X_AUTHORIZATION_CONTENT_SHA256
59+
HTTP-X-AUTHORIZATION-CONTENT-SHA256
60+
X-AUTHORIZATION-CONTENT-SHA256
61+
])
5762
end
5863

5964
def original_uri

0 commit comments

Comments
 (0)