mirror of
https://github.com/curl/curl.git
synced 2026-07-28 12:53:06 +03:00
http_aws_sigv4: cannot be used for proxy
Make sure it is never attempted. Reported-by: Philippe Antoine Closes #16569
This commit is contained in:
parent
34cbf95267
commit
c4cd0ae9ba
3 changed files with 5 additions and 7 deletions
|
|
@ -634,9 +634,10 @@ output_auth_headers(struct Curl_easy *data,
|
|||
(void)path;
|
||||
#endif
|
||||
#ifndef CURL_DISABLE_AWS
|
||||
if(authstatus->picked == CURLAUTH_AWS_SIGV4) {
|
||||
if((authstatus->picked == CURLAUTH_AWS_SIGV4) && !proxy) {
|
||||
/* this method is never for proxy */
|
||||
auth = "AWS_SIGV4";
|
||||
result = Curl_output_aws_sigv4(data, proxy);
|
||||
result = Curl_output_aws_sigv4(data);
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue