mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Resolves #717 Motivation: Content encoding header may contain invalid value if handlers before compressor have already set it. Modifications: Instead of headers.add which appends header value use headers.replaceOrAdd which replaces existing value Result: If Content-Encoding header was set to some value, compressor will reset it to the value of compression algorithm it have picked.