NOBODY set TRUE after a POST makes a good HEAD now

This commit is contained in:
Daniel Stenberg 2004-06-30 11:09:16 +00:00
parent 3523613826
commit 185baf036b
6 changed files with 113 additions and 2 deletions

View file

@ -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:
/*