valyala/fasthttp
Chunked response with trailer result in "cannot find crlf at the end of chunk" error
Geschlossen
#1.078 geöffnet am 21.08.2021
help wanted
Repository-Metriken
- Stars
- (21.741 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 3T) (44 gemergte PRs in 30 T)
Beschreibung
Hello,
While using fasthttp.Client to talk to a server that produce chunked response with trailer headers I see "cannot find crlf at the end of chunk" error. I suspects that this happens because fasthttp's implementation does not expect to see trailer headers after the last chunk, which is not according to chunked transfer coding spec.
This can ideally be fixed by adding https://github.com/valyala/fasthttp/issues/210. Otherwise readBodyChunked need to be mindful of trailers.
Let me know if I should produce an example.
Regards.