benoitc / hackney

simple HTTP client in Erlang
Other
1.34k stars 427 forks source link

Handle trailers in persistent connections #608

Closed Kuroneer closed 4 years ago

Kuroneer commented 4 years ago

Split from https://github.com/benoitc/hackney/pull/604:

In this PR the last CRLF in chunked responses is parsed to avoid having garbage in front of the next response in the connection. This garbage could be CRLF or simply LF, depending on what did the binary received by the socket contain.