We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b748d0 commit bb63f07Copy full SHA for bb63f07
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/ServerH2StreamHandler.java
@@ -179,7 +179,7 @@ private void commitResponse(
179
receivedRequest != null && Method.HEAD.isSame(receivedRequest.getMethod());
180
outputChannel.submit(responseHeaders, endStream);
181
connMetrics.incrementResponseCount();
182
- if (responseEntityDetails == null) {
+ if (endStream) {
183
responseState = MessageState.COMPLETE;
184
} else {
185
responseState = MessageState.BODY;
0 commit comments