Files
swift-nio/Sources/NIOHTTP1
Ilya Puchka 37237d880c override content encoding header value in compressor
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.
2019-01-04 14:05:53 +00:00
..