From fe37005526d451711d05dd0a09b6c38a4757e9ef Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 11 Jun 2023 09:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9http=20body=E8=B6=85=E8=BF=87?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=E5=A4=A7=E5=B0=8F=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index f1cac788..7896d281 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -112,7 +112,7 @@ ssize_t HttpSession::onRecvHeader(const char *header, size_t len) { _on_recv_body = [this, parser, received, content_len](const char *data, size_t len) mutable { received += len; onRecvUnlimitedContent(parser, data, len, content_len, received); - if (received != content_len) { + if (received < content_len) { // 还没收满 return true; }