Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set the correct length in writeResponse

  • Loading branch information...
commit 774def1783f9a29cf3d80a666dddaaeaeacf1f1d 1 parent 469ad36
@pepite pepite authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/play/modules/netty/PlayHandler.java
View
2  src/play/modules/netty/PlayHandler.java
@@ -229,7 +229,7 @@ protected static void writeResponse(ChannelHandlerContext ctx, Response response
ChannelBuffer buf = ChannelBuffers.copiedBuffer(content);
nettyResponse.setContent(buf);
//if (keepAlive) {
- setContentLength(nettyResponse, nettyResponse.getContent().readableBytes());
+ setContentLength(nettyResponse, response.out.size());
//}
ChannelFuture f = ctx.getChannel().write(nettyResponse);
Please sign in to comment.
Something went wrong with that request. Please try again.