Skip to content

Commit

Permalink
[balsa] Fix Http1ClientConnectionImplTest.HeadRequest. (#22105)
Browse files Browse the repository at this point in the history
Fix Http1ClientConnectionImplTest.HeadRequest for balsa parser.

Signed-off-by: Bence Béky <bnc@google.com>
  • Loading branch information
bencebeky authored Jul 12, 2022
1 parent 0015180 commit d4bf478
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/common/http/http1/balsa_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ void BalsaParser::HeaderDone() {
return;
}
headers_done_ = true;
status_ = convertResult(connection_->onHeadersComplete());
CallbackResult result = connection_->onHeadersComplete();
status_ = convertResult(result);
if (result == CallbackResult::NoBody || result == CallbackResult::NoBodyData) {
MessageDone();
}
}

void BalsaParser::ContinueHeaderDone() {}
Expand Down

0 comments on commit d4bf478

Please sign in to comment.