aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-30 11:09:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-30 11:09:16 +0000
commit185baf036b9bcfe1386a6fd1549ca5403ec66812 (patch)
treece3382929e562ad910fc6628d9e6fd14c3fa329d /lib/url.c
parent352361382692256dd94040ce3ba54b079658135e (diff)
NOBODY set TRUE after a POST makes a good HEAD now
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 59d674ca1..3fbc7b3e6 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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:
/*