mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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."
This commit is contained in:
parent
76576cd1e2
commit
02f6894af5
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user