mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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.
This commit is contained in:
parent
6212e6990a
commit
c341b11aaf
@ -559,8 +559,11 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
|||||||
* Set a custom string to use as request
|
* Set a custom string to use as request
|
||||||
*/
|
*/
|
||||||
data->set.customrequest = va_arg(param, char *);
|
data->set.customrequest = va_arg(param, char *);
|
||||||
if(data->set.customrequest)
|
|
||||||
|
/* we don't set
|
||||||
data->set.httpreq = HTTPREQ_CUSTOM;
|
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;
|
break;
|
||||||
case CURLOPT_HTTPPOST:
|
case CURLOPT_HTTPPOST:
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user