okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
735 stars 91 forks source link

Lowercase hostname when generating canonical headers #187

Closed bfrobin446 closed 8 months ago

bfrobin446 commented 8 months ago

If we force the hostname to lower case when generating the canonical headers for the request signature, as suggested by the "must be trimmed and lowercase" comment above, we don't generate a confusing signature error when the user types the hostname in mixed case.

This fixes https://github.com/okigan/awscurl/issues/186.