Commit 7b832e17 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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!
parent 914b9e44
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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: