Handle chunked encoding properly for non-200 responses
This commit is contained in:
parent
15792da167
commit
dd1ff8d9cc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user