netty5/codec-http/src
Norman Maurer 4a1e0ceb4d [5382] HttpContentEncoder should not set chunked transfer-encoding for HTTP/1.0
Motivation:

When using HttpContentCompressor and the HttpResponse is protocol version 1.0, HttpContentEncoder.encode() should not set the transfer-encoding header to chunked. Chunked transfer-encoding is not valid for HTTP 1.0 - this causes ERR_CONTENT_DECODING_FAILED errors in chrome and similar failures in IE.

Modifications:

Skip HTTP/1.0 messages

Result:

Be able to serve HTTP/1.0 as well when HttpContentEncoder is in the pipeline.
2016-06-17 06:35:33 +02:00
..
main/java/io/netty/handler/codec [5382] HttpContentEncoder should not set chunked transfer-encoding for HTTP/1.0 2016-06-17 06:35:33 +02:00
test [5382] HttpContentEncoder should not set chunked transfer-encoding for HTTP/1.0 2016-06-17 06:35:33 +02:00