Skip to content

Commit

Permalink
Minor performance optimization in handling of HEAD requests by the H2…
Browse files Browse the repository at this point in the history
… transport
  • Loading branch information
ok2c committed Jan 3, 2025
1 parent 00b5437 commit e3f7f02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private void commitResponse(
(receivedRequest != null && Method.HEAD.isSame(receivedRequest.getMethod()));
outputChannel.submit(responseHeaders, endStream);
connMetrics.incrementResponseCount();
if (responseEntityDetails == null) {
if (endStream) {
responseState = MessageState.COMPLETE;
} else {
responseState = MessageState.BODY;
Expand Down

0 comments on commit e3f7f02

Please sign in to comment.