aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-23 07:52:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-23 07:52:45 +0000
commit02f6894af5ac2bdd2e8468bc48011cfdae72ea14 (patch)
treedfc0a24a7ba4fcc1a920436b84156bbb8021f040
parent76576cd1e28ad07f098de464f6da1c93e262f652 (diff)
now always stops reading a HEAD reply after all the headers have been returned
RFC 2616, section 9.4 says: "The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response."
-rw-r--r--lib/transfer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 13f292d13..54fbab182 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -356,11 +356,10 @@ Transfer(struct connectdata *c_conn)
/*
* end-of-headers.
*
- * If we requested a "no body" and this isn't a "close"
- * connection, this is a good time to get out and return
- * home.
+ * If we requested a "no body", this is a good time to get
+ * out and return home.
*/
- if(!conn->bits.close && data->bits.no_body)
+ if(data->bits.no_body)
return CURLE_OK;
break; /* exit header line loop */
}