zendframework / zend-http

Http component from Zend Framework
BSD 3-Clause "New" or "Revised" License
134 stars 85 forks source link

#76 Check content-length before to decode response body #156

Closed thomasvargiu closed 5 years ago

thomasvargiu commented 6 years ago

With this PR we check the content-length header, if it's 0 we didn't try to decode content body.

weierophinney commented 5 years ago

Thanks, @thomasvargiu!

weierophinney commented 5 years ago

Merged to develop for release with 2.9.0.