netty5/codec-http/src/main/java
Jeff Beck 5ba4fdf3ba HttpObjectAggregator only set Content-Length is not already set.
Motivation:

HEAD requests will have a Content-Length set that doesn't match the
actual length. So we only want to set Content-Length header if it isn't
already set.

Modifications:

If check around setting the Content-Length.

Result:

A HEAD request will no correctly return the specified Content-Length
instead of the body length.
2014-12-25 20:44:10 +01:00
..
io/netty/handler/codec HttpObjectAggregator only set Content-Length is not already set. 2014-12-25 20:44:10 +01:00