Permalink
Browse files

Set the correct length in writeResponse

  • Loading branch information...
1 parent 469ad36 commit 774def1783f9a29cf3d80a666dddaaeaeacf1f1d @pepite pepite committed Mar 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 774def1

Please sign in to comment.