From: Daniel Stenberg Date: Wed, 5 Dec 2001 06:47:01 +0000 (+0000) Subject: Jon Travis suggested fix. when CURLOPT_HTTPGET is used we must assign X-Git-Tag: curl-7_9_2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b832e1745f0d264489b45d0ef88e845238b1871;p=curl Jon Travis suggested fix. when CURLOPT_HTTPGET is used we must assign set.upload to FALSE or else we might still get an upload if the previous operation was an upload! --- diff --git a/lib/url.c b/lib/url.c index 1ffe5dae9..3b5482c2b 100644 --- a/lib/url.c +++ b/lib/url.c @@ -556,8 +556,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) /* * Set to force us do HTTP GET */ - if(va_arg(param, long)) + if(va_arg(param, long)) { data->set.httpreq = HTTPREQ_GET; + data->set.upload = FALSE; /* switch off upload */ + } break; case CURLOPT_INFILE: