Skip to content

Commit

Permalink
Merge pull request #187 from bfrobin446/master
Browse files Browse the repository at this point in the history
Lowercase hostname when generating canonical headers
  • Loading branch information
okigan authored Oct 12, 2023
2 parents b2ebe71 + c9c3190 commit 2587171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awscurl/awscurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def task_1_create_a_canonical_request(
# Step 4: Create the canonical headers and signed headers. Header names
# and value must be trimmed and lowercase, and sorted in ASCII order.
# Note that there is a trailing \n.
canonical_headers = ('host:' + fullhost + '\n' +
canonical_headers = ('host:' + fullhost.lower() + '\n' +
'x-amz-date:' + amzdate + '\n')

if security_token:
Expand Down

0 comments on commit 2587171

Please sign in to comment.