Skip to content
Browse files

Handle chunked encoding properly for non-200 responses

  • Loading branch information...
1 parent 15792da commit dd1ff8d9cc7a4a2644fc63d1809d93f13f93a5bf @trustin trustin committed May 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/jboss/netty/example/http/snoop/HttpResponseHandler.java
View
2 src/main/java/org/jboss/netty/example/http/snoop/HttpResponseHandler.java
@@ -52,7 +52,7 @@ public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Ex
System.out.println();
}
- if (response.getStatus().getCode() == 200 && response.isChunked()) {
+ if (response.isChunked()) {
readingChunks = true;
System.out.println("CHUNKED CONTENT {");
} else {

0 comments on commit dd1ff8d

Please sign in to comment.
Something went wrong with that request. Please try again.