ikruglov / YAHC

YAHC - Yet another HTTP client
MIT License
12 stars 10 forks source link

Read only headers for a HEAD request #4

Closed filabrazilska closed 7 years ago

filabrazilska commented 7 years ago

YAHC would wait indefinitely/until request_timeout for payload when using the HEAD method instead of jumping to the USER ACTION state after the headers have been successfully read.

The check for $conn->{request}{method} existence needed as the client needn't provide a method (defaulting to GET when making the actual HTTP request).