]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
setopt: when POST is set, reset the 'upload' field
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Sep 2022 07:22:45 +0000 (09:22 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 Sep 2022 21:44:15 +0000 (23:44 +0200)
Reported-by: RobBotic1 on github
Fixes #9507
Closes #9511

lib/setopt.c

index 03c4efdbf1e587eaf840468ab533f1d5e28241be..7289a4e78bdd0bb3a9eda049edb6b0597d369192 100644 (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: