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:
parent
914b9e441b
commit
7b832e1745
@ -556,8 +556,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
|||||||
/*
|
/*
|
||||||
* Set to force us do HTTP GET
|
* Set to force us do HTTP GET
|
||||||
*/
|
*/
|
||||||
if(va_arg(param, long))
|
if(va_arg(param, long)) {
|
||||||
data->set.httpreq = HTTPREQ_GET;
|
data->set.httpreq = HTTPREQ_GET;
|
||||||
|
data->set.upload = FALSE; /* switch off upload */
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CURLOPT_INFILE:
|
case CURLOPT_INFILE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user