From 8b1d1d6e24d61bb9095c0d067ee8c5a5f70705a1 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Mon, 23 Aug 2021 11:00:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=AF=E8=83=BD=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E7=A9=BA=E6=8C=87=E9=92=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index b9f9d593..d6379733 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -236,7 +236,7 @@ static inline void addHttpListener(){ auto &content = parser.Content(); log << "# content:\r\n" << (content.size() > 4 * 1024 ? content.substr(0, 4 * 1024) : content) << "\r\n"; - if (size && size < 4 * 1024) { + if (size > 0 && size < 4 * 1024) { auto response = body->readData(size); log << "# response:\r\n" << response->data() << "\r\n"; invoker(code, headerOut, response);