mirror of
https://github.com/curl/curl.git
synced 2026-07-16 05:17:19 +03:00
setopt: when POST is set, reset the 'upload' field
Reported-by: RobBotic1 on github Fixes #9507 Closes #9511
This commit is contained in:
parent
c04c78ac87
commit
a64e3e5993
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue