Skip to content

Commit cf72e6b

Browse files
committed
fix comment
1 parent 604ea93 commit cf72e6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

providers/netty3/src/main/java/org/asynchttpclient/netty/handler/HttpProtocol.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,10 @@ private boolean exitAfterHandlingBody(Channel channel, NettyResponseFuture<?> fu
393393
AsyncHandler<?> handler) throws Exception {
394394
if (!response.isChunked()) {
395395
// no chunks expected, exiting
396-
if (response.getContent().readableBytes() > 0)
397-
// FIXME no need to notify an empty bodypart?
396+
if (response.getContent().readableBytes() > 0) {
397+
// no need to notify an empty bodypart
398398
updateBodyAndInterrupt(future, handler, new NettyResponseBodyPart(response, null, true));
399+
}
399400
finishUpdate(future, channel, false);
400401
return true;
401402
}

0 commit comments

Comments
 (0)