mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-06 15:51:46 +00:00
Update httplib.h
If no "Content-Length" is sent in the response-header the body is always empty #16
This commit is contained in:
1 parent
bfb7f7bb78
commit
57af6277b8
1 file changed
+1
-1
@@ -1081,7 +1081,7 @@ inline bool Client::process_request(Stream& strm, const Request& req, Response&
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (req.method != "HEAD") {
|
if (req.method != "HEAD") {
|
||||||
if (!detail::read_content(strm, res, false)) {
|
if (!detail::read_content(strm, res, true)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user