ikruglov / YAHC

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

Support implicit content length through closed connection #5

Closed qrovira closed 7 years ago

qrovira commented 7 years ago

This pull request attempts to add support for responses missing a Content-Length header (and not chunked), where the response body length is determined by the server closing the connection at the end of the request.

There's also the commit that adds validation for the Content-Length value, sorry for mixing into the same PR, made conflicts easier at this point.

The last commit also adds a test file for these cases.. it could sure use some improvement, but so far travis seems not to complain about them.

ikruglov commented 7 years ago

I'll prepare a release

qrovira commented 7 years ago

♥️♥️♥️On 20 Jun 2017 20:52, Ivan Kruglov notifications@github.com wrote:I'll prepare a release

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.