Skip to content

Removed blacklist header from canonical calc#480

Open
duckboy81 wants to merge 1 commit into
TTLabs:masterfrom
duckboy81:patch-2
Open

Removed blacklist header from canonical calc#480
duckboy81 wants to merge 1 commit into
TTLabs:masterfrom
duckboy81:patch-2

Conversation

@duckboy81

Copy link
Copy Markdown

In building a backend system to recreate and verify client request before signing them, I noticed the AWS SDK for PHP have blacklist of headers for those it will not sign.

As such, I have removed the content-length header from AwsSignatureV4.prototype.canonicalHeaders function to align with AWS's signature process.

AWS-SDK reference: https://github.com/aws/aws-sdk-php/blob/6ef06165ef815358d3e60872b4c9f6c10deb3816/src/Signature/SignatureV4.php#L40-L74

Referencing the aws-sdk-php repo, removed the "Content-Type" header from being signed due to its existence on the header blacklist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant