From 9c8f6048686b45d7f61ee8b1b290b7b140a27b34 Mon Sep 17 00:00:00 2001 From: xzl <771730766@qq.com> Date: Mon, 4 Sep 2017 15:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DHttp=20POST=20Content?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E4=B8=8D=E5=93=8D=E5=BA=94=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index 4bf924a7..89e58a71 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -376,9 +376,9 @@ inline HttpSession::KeyValue HttpSession::makeHttpHeader(bool bClose, int64_t iC } inline HttpSession::HttpCode HttpSession::Handle_Req_POST() { int iContentLen = atoi(m_parser["Content-Length"].data()); - if (!iContentLen) { + /*if (!iContentLen) { return Http_failed; - } + }*/ if ((int) m_strRcvBuf.size() < iContentLen) { return Http_moreData; //需要更多数据 }