Skip to content

Conversation

duckboy81
Copy link

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