[BugFix]be compatible with content length is zero (#50782)
Signed-off-by: zombee0 <ewang2027@gmail.com>
This commit is contained in:
parent
8834cd818c
commit
12cae590bc
|
|
@ -126,7 +126,7 @@ diff --git a/Net/src/HTTPResponse.cpp b/Net/src/HTTPResponse.cpp
|
|||
+
|
||||
+bool HTTPResponse::isPreAllocated()
|
||||
+{
|
||||
+ return _size >= getContentLength64();
|
||||
+ return _size > 0 && _size >= getContentLength64();
|
||||
+}
|
||||
+
|
||||
+void HTTPResponse::setBodyFilled(bool bodyFilled)
|
||||
|
|
|
|||
Loading…
Reference in New Issue