]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: fix aws-sigv4 having date header twice in some cases
authorMatthias Gatto <matthias.gatto@outscale.com>
Mon, 28 Aug 2023 11:38:20 +0000 (13:38 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 30 Aug 2023 07:41:29 +0000 (03:41 -0400)
commitb137634ba3adb7ac2feeeb343bde7aa54922cab2
tree35fa3379889f81d310be19052aa48426312f0d7e
parent7f597ca12cebe91889246b91ac2b710eac19652b
lib: fix aws-sigv4 having date header twice in some cases

When the user was providing the header X-XXX-Date, the header was
re-added during signature computation, and we had it twice in the
request.

Reported-by: apparentorder@users.noreply.github.com
Signed-off-by: Matthias Gatto <matthias.gatto@outscale.com>
Fixes: https://github.com/curl/curl/issues/11738
Closes: https://github.com/curl/curl/pull/11754
lib/http_aws_sigv4.c
tests/data/Makefile.inc
tests/data/test1964 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1964.c [new file with mode: 0644]