Handle chunked encoding properly for non-200 responses

This commit is contained in:
Trustin Lee 2011-05-26 12:11:02 +09:00
parent 15792da167
commit dd1ff8d9cc

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 {