sprinfall / webcc

Lightweight C++ HTTP client and server library based on Asio for embedding purpose.
GNU Lesser General Public License v3.0
270 stars 61 forks source link

Transfer-Encoding: chunked" not handled properly #3

Closed ReallyVirtual closed 5 years ago

ReallyVirtual commented 5 years ago

HttpParser assumes that the Content-Length would always be present in the response, which is not the case if the Transfer-Encoding is "chunked" - and they are mutually exclusive. If the server returned a "chunked" Transfer-Encoding, the end result is an empty response.

sprinfall commented 5 years ago

Thank you. I will add "chunked" support into the plan.

sprinfall commented 5 years ago

I just made a push which includes the "chunked" support.