mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
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.