diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-01-28 19:31:26 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-01-28 19:31:26 +0000 |
commit | c341b11aafedb8beb209342dbfb12f9d70f742b4 (patch) | |
tree | 12d610d04842411fded6f2337dfa760e40b770fe | |
parent | 6212e6990aead04919bb69eef3a724ff5df81fde (diff) |
Steve Marx helped us realize that we shouldn't treat customrequest as a
request of its own, it just changes the keyword of a request.
-rw-r--r-- | lib/url.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -559,8 +559,11 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) * Set a custom string to use as request */ data->set.customrequest = va_arg(param, char *); - if(data->set.customrequest) - data->set.httpreq = HTTPREQ_CUSTOM; + + /* we don't set + data->set.httpreq = HTTPREQ_CUSTOM; + here, we continue as if we were using the already set type + and this just changes the actual request keyword */ break; case CURLOPT_HTTPPOST: /* |