We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b841568 commit 67283adCopy full SHA for 67283ad
pingora-core/src/protocols/http/v2/server.rs
@@ -389,10 +389,10 @@ impl HttpSession {
389
pub fn is_body_done(&self) -> bool {
390
// Check no body in request
391
// 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())
+ self.is_body_empty() || self.request_body_reader.is_end_stream()
393
}
394
395
- /// Whether there is any body to read. false means there no body in request.
+ /// Whether there is any body to read. true means there no body in request.
396
pub fn is_body_empty(&self) -> bool {
397
self.body_read == 0
398
&& (self.request_body_reader.is_end_stream()
0 commit comments