setopt: when POST is set, reset the 'upload' field

Reported-by: RobBotic1 on github
Fixes #9507
Closes #9511
This commit is contained in:
Daniel Stenberg 2022-09-15 09:22:45 +02:00
parent c04c78ac87
commit a64e3e5993
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -700,6 +700,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
}
else
data->set.method = HTTPREQ_GET;
data->set.upload = FALSE;
break;
case CURLOPT_HTTPPOST: