Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Handle chunked encoding properly for non-200 responses

  • Loading branch information...
commit dd1ff8d9cc7a4a2644fc63d1809d93f13f93a5bf 1 parent 15792da
@trustin trustin authored
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 {
Please sign in to comment.
Something went wrong with that request. Please try again.