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.
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 fromAwsSignatureV4.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