summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-09-15 09:22:45 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-09-15 23:44:15 +0200
commita64e3e59938abd7d667e4470a18072a24d7e9de9 (patch)
tree6d7f930841e760c6663511b940bbb7e48aecca38 /lib/setopt.c
parentc04c78ac87c4d46737934345af50868bcc4e1ba4 (diff)
downloadcurl-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.c1
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: