Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
("Sometimes body not returned on 403")

Make sure we return the body with any status code, not only 200.

Collaboratives works with Hubert Iwaniuk and the community.
  • Loading branch information
jfarcand committed Aug 30, 2010
1 parent 28a02ec commit 5a1d363
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Ex
return;
}

if (response.getStatus().getCode() != 200 || nettyRequest.getMethod().equals(HttpMethod.HEAD)) {
if (nettyRequest.getMethod().equals(HttpMethod.HEAD)) {
markAsDoneAndCacheConnection(future, ctx.getChannel());
}

Expand Down

0 comments on commit 5a1d363

Please sign in to comment.