Skip to content

Commit

Permalink
🐛 fixed reading http body incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Nov 26, 2018
1 parent c9833d6 commit c75de99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected void channelRead0(ChannelHandlerContext ctx, HttpObject msg) {
httpRequest.setNettyRequest((io.netty.handler.codec.http.HttpRequest) msg);
return;
}
if (msg instanceof HttpContent) {
if (null != httpRequest && msg instanceof HttpContent) {
httpRequest.appendContent((HttpContent) msg);
}
if (msg instanceof LastHttpContent) {
Expand Down

0 comments on commit c75de99

Please sign in to comment.