mirror of
https://github.com/curl/curl.git
synced 2026-08-11 02:50:55 +03:00
NOBODY set TRUE after a POST makes a good HEAD now
This commit is contained in:
parent
3523613826
commit
185baf036b
6 changed files with 113 additions and 2 deletions
|
|
@ -488,6 +488,9 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
|||
* Do not include the body part in the output data stream.
|
||||
*/
|
||||
data->set.opt_no_body = va_arg(param, long)?TRUE:FALSE;
|
||||
if(data->set.opt_no_body)
|
||||
/* in HTTP lingo, this means using the HEAD request */
|
||||
data->set.httpreq = HTTPREQ_HEAD;
|
||||
break;
|
||||
case CURLOPT_FAILONERROR:
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue