Skip to content
Snippets Groups Projects
Commit c341b11a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 6212e699
No related branches found
No related tags found
No related merge requests found
......@@ -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:
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment