aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 5b10eb310..23100fc13 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -639,6 +639,8 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
callback! */
if(va_arg(param, long))
data->set.httpreq = HTTPREQ_POST;
+ else
+ data->set.httpreq = HTTPREQ_GET;
break;
case CURLOPT_POSTFIELDS: