Handle chunked encoding properly for non-200 responses

This commit is contained in:
Trustin Lee 2011-05-26 12:11:02 +09:00
parent 8f7efa0548
commit 349b03b467

View File

@ -52,7 +52,7 @@ public class HttpResponseHandler extends SimpleChannelUpstreamHandler {
System.out.println();
}
if (response.getStatus().getCode() == 200 && response.isChunked()) {
if (response.isChunked()) {
readingChunks = true;
System.out.println("CHUNKED CONTENT {");
} else {