netty5/codec-http/src
Bryce Anderson 9fa3e556f3 Adjust Content-Length header when encoding Full Responses
Motivation:
If a full HttpResponse with a Content-Length header is encoded by the HttpContentEncoder subtypes the Content-Length header is removed and the message is set to Transfer-Encoder: chunked. This is an unnecessary loss of information about the message content.

Modifications:
- If a full HttpResponse has a Content-Length header, the header is adjusted after encoding.

Result:
Complete messages continue to have the Content-Length header after encoding.
2017-06-06 22:07:29 +02:00
..
main/java/io/netty/handler/codec Adjust Content-Length header when encoding Full Responses 2017-06-06 22:07:29 +02:00
test Adjust Content-Length header when encoding Full Responses 2017-06-06 22:07:29 +02:00