On 02/12/13 09:19, Norman Maurer wrote:
>
> In 
> vertx-core/src/main/java/org/vertx/java/core/http/impl/DefaultHttpServerResponse.java:
>
> > @@ -453,7 +453,7 @@ private void prepareHeaders() {
> >
> >    private DefaultHttpServerResponse write(ByteBuf chunk, final Handler<AsyncResult<Void>> doneHandler) {
> >      checkWritten();
> > -    if (version != HttpVersion.HTTP_1_0 && !chunked && !contentLengthSet()) {
> > +    if (!headWritten && version != HttpVersion.HTTP_1_0 && !chunked && !contentLengthSet()) {
>
> Because the compression handler of netty automatically remove the 
> Content-Length header and use chunked transfer. so this would start to 
> fail.
>

But what about people not using compression?

> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/eclipse/vert.x/pull/748/files#r8020216>.
>