diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-09-15 09:22:45 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-09-15 23:44:15 +0200 |
commit | a64e3e59938abd7d667e4470a18072a24d7e9de9 (patch) | |
tree | 6d7f930841e760c6663511b940bbb7e48aecca38 /lib/setopt.c | |
parent | c04c78ac87c4d46737934345af50868bcc4e1ba4 (diff) | |
download | curl-a64e3e59938abd7d667e4470a18072a24d7e9de9.tar.gz |
setopt: when POST is set, reset the 'upload' field
Reported-by: RobBotic1 on github
Fixes #9507
Closes #9511
Diffstat (limited to 'lib/setopt.c')
-rw-r--r-- | lib/setopt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/setopt.c b/lib/setopt.c index 03c4efdbf..7289a4e78 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -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: |