aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c4
1 files changed, 3 insertions, 1 deletions
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: