mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:03:32 +03:00
aws-sigv4: allow a blank string
make sure a zero length sigv4 gets the default value Reported-by: Arian van Putten Fixes #17176 Closes #17178
This commit is contained in:
parent
ae0ff69f7a
commit
2ab6b9d405
2 changed files with 4 additions and 3 deletions
|
|
@ -676,8 +676,9 @@ CURLcode Curl_output_aws_sigv4(struct Curl_easy *data)
|
|||
* AWS is the default because most of non-amazon providers
|
||||
* are still using aws:amz as a prefix.
|
||||
*/
|
||||
line = data->set.str[STRING_AWS_SIGV4] ?
|
||||
data->set.str[STRING_AWS_SIGV4] : "aws:amz";
|
||||
line = data->set.str[STRING_AWS_SIGV4];
|
||||
if(!line || !*line)
|
||||
line = "aws:amz";
|
||||
|
||||
/* provider0[:provider1[:region[:service]]]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue