From: Daniel Stenberg Date: Thu, 15 Sep 2022 07:22:45 +0000 (+0200) Subject: setopt: when POST is set, reset the 'upload' field X-Git-Tag: curl-7_86_0~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a64e3e59938abd7d667e4470a18072a24d7e9de9;p=thirdparty%2Fcurl.git setopt: when POST is set, reset the 'upload' field Reported-by: RobBotic1 on github Fixes #9507 Closes #9511 --- diff --git a/lib/setopt.c b/lib/setopt.c index 03c4efdbf1..7289a4e78b 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: