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!
This commit is contained in:
Daniel Stenberg 2001-12-05 06:47:01 +00:00
parent 914b9e441b
commit 7b832e1745

View File

@ -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: