Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
- Add Excon HTTP client support with middleware (based on contribution by @stiak in PR #154)
- Add Typhoeus HTTP client support (adapted from work by @liaden)

## Bug Fixes

- Fix SHA256 content hash header lookup for Rack driver (PR #211 by @taylorthurlow)
- Fix SHA256 content hash header lookup for Grape driver to check all header variations

## Improvements

- Update minimum Ruby version to 3.2
Expand All @@ -25,6 +30,7 @@
- RSpec ~> 3.13
- Rake ~> 13.0
- Rest-Client ~> 2.1
- Typhoeus ~> 1.4

# 2.6.0 (2025-01-18)

Expand Down
7 changes: 6 additions & 1 deletion lib/api_auth/request_drivers/grape_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ def content_type
end

def content_hash
find_header %w[HTTP_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