Skip to content

Commit

Permalink
[BugFix]be compatible with content length is zero (#50782)
Browse files Browse the repository at this point in the history
Signed-off-by: zombee0 <[email protected]>
  • Loading branch information
zombee0 authored Sep 6, 2024
1 parent 8834cd8 commit 12cae59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thirdparty/patches/poco-1.12.5-zero-copy.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 12cae59

Please sign in to comment.