mirror of
https://github.com/curl/curl.git
synced 2026-08-25 13:53:37 +03:00
aws_sigv4: fix header computation
Handle canonical headers and signed headers creation as explained here: https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html The algo tells that signed and canonical must contain at last host and x-amz-date. So we check whatever thoses are present in the curl http headers list. If they are, we use the one enter by curl user, otherwise we generate them. then we to lower, and remove space from each http headers plus host and x-amz-date, then sort them all by alphabetical order. This patch also fix a bug with host header, which was ignoring the port. Closes #7966
This commit is contained in:
parent
3c0050d13e
commit
29c4aa00a1
17 changed files with 535 additions and 224 deletions
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue