okigan / awscurl

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

Uses host from HTTP header to create canonical request instead of URI host #56

Closed iddv closed 5 years ago

iddv commented 5 years ago

If 'host' is passed as an HTTP header, make it part of the canonical request. If this does not happen, the host extracted from the URI will be used to create the canonical header. The mismatch between host header and header listed in the canonical request will authentication failures, as the signature is calculated over the entire request

okigan commented 5 years ago

Looks good