Files
swift-nio/Sources
Cory Benfield 110992e424 Correctly manage Content-Length on HEAD responses (#2277) (#2289)
Motivation

When we receive a HEAD response, it's possible that the response
contains a content-length. llhttp has a bug
(https://github.com/nodejs/llhttp/issues/202) that prevents it from
properly managing that issue, which causes us to incorrectly parse
responses.

Modifications

Forcibly set llhttp's content-length value to 0.

Result

Correctly handle HTTP framing around llhttp's issues.

(cherry picked from commit 5aa44987f8)
2022-10-13 10:14:23 +01:00
..
2021-01-22 18:39:10 +00:00