mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: With HTTP/1.0 and EOF framing it's possible to have a HTTP response that doesn't have any headers. HTTPDecoder unfortunately fell flat on its face and crashed the program if that happened. Modifications: - don't expect headers on responses - add tests for that - rename the state machine cases to reflect a request and response parsing Result: fewer crashes.