diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-12-05 06:47:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-12-05 06:47:01 +0000 |
commit | 7b832e1745f0d264489b45d0ef88e845238b1871 (patch) | |
tree | 1c719d465ce1487138005ca7da666ef331b97024 /lib | |
parent | 914b9e441b81ecfdfa12056da947ba31ba6fb045 (diff) |
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!
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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: |