From ad9dd42aaa13484a9e0873711674a2b6e36c8ea0 Mon Sep 17 00:00:00 2001 From: Taylor Thurlow Date: Mon, 10 Apr 2023 16:25:33 -0700 Subject: [PATCH] Fix sha256 auth content header fetch for Rack driver --- lib/api_auth/request_drivers/rack.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/api_auth/request_drivers/rack.rb b/lib/api_auth/request_drivers/rack.rb index 631e953e..4730a34e 100644 --- a/lib/api_auth/request_drivers/rack.rb +++ b/lib/api_auth/request_drivers/rack.rb @@ -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