mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-29 05:24:22 +00:00
Motivation: The return value from `HPACKHeaders.subscript(canonicalForm:)` is inconsistent with respect to returning empty strings. If a value for a header field is an empty string then the canonical form will not return that empty string. However, if a value is a string containing only whitespace then an empty string will be returned. Modifications: - Filter out empty substrings after trimming whitespace - Add a test Result: - `HPACKHeaders.subscript(canonicalForm:)` does not produce empty strings