Skip to content

Commit 67283ad

Browse files
committed
update
1 parent b841568 commit 67283ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pingora-core/src/protocols/http/v2/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ impl HttpSession {
389389
pub fn is_body_done(&self) -> bool {
390390
// Check no body in request
391391
// Also check we hit end of stream if request carry body.
392-
self.is_body_empty() || (self.body_read > 0 && self.request_body_reader.is_end_stream())
392+
self.is_body_empty() || self.request_body_reader.is_end_stream()
393393
}
394394

395-
/// Whether there is any body to read. false means there no body in request.
395+
/// Whether there is any body to read. true means there no body in request.
396396
pub fn is_body_empty(&self) -> bool {
397397
self.body_read == 0
398398
&& (self.request_body_reader.is_end_stream()

0 commit comments

Comments
 (0)