Skip to content

Commit

Permalink
Set the correct length in writeResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
pepite committed Mar 16, 2010
1 parent 469ad36 commit 774def1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/play/modules/netty/PlayHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 774def1

Please sign in to comment.