You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ignore empty values when returning canonical form of header values (#307)
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
0 commit comments