http_aws_sigv4: fix query normalization of %2b

Reported-by: Nuno Goncalves
Fixes #20543
Closes #20550
This commit is contained in:
Daniel Stenberg 2026-02-09 14:59:39 +01:00
parent 5c250e2421
commit ee3a4dff1a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 45 additions and 34 deletions

View file

@ -83,6 +83,12 @@ static CURLcode test_unit1979(const char *arg)
"/example space/",
"/example%20space/"
},
{
"get-plus-normalized",
true,
"/example+space/",
"/example%2Bspace/"
},
{
"get-slash-dot-slash-unnormalized",
false,

View file

@ -79,6 +79,11 @@ static CURLcode test_unit1980(const char *arg)
"p3= &p1=+&p2=%20",
"p1=%20&p2=%20&p3=%20"
},
{
"2b-incoming",
"p3=%2b&p1=+",
"p1=%20&p3=%2B"
},
};
size_t i;