netty5/example/src/main
Trustin Lee 338b60821d Do not write LastHttpContent twice in HttpStaticFileServer example
Related: #3122

Motivation:

The HttpStaticFileServer example writes the LastHttpContent twice at the
end of the transfer.  HttpChunkedInput already produces a
LastHttpContent at the end of the stream, so there's no reason to write
another.

Modifications:

Do not write LastHttpContent in HttpStaticFileServerHandler when
HttpChunkedInput is used to transfer a file.

Result:

HttpStaticFileServer does not violates the protocol anymore.
2014-11-21 11:43:32 +09:00
..
java/io/netty/example Do not write LastHttpContent twice in HttpStaticFileServer example 2014-11-21 11:43:32 +09:00
resources Add logLevel property to enable different log levels for the examples. 2014-11-21 10:48:57 +09:00