From 57af6277b88084a6e8f9b5d03a151646b1629244 Mon Sep 17 00:00:00 2001 From: Constantin Date: Mon, 11 Sep 2017 10:58:17 +0900 Subject: [PATCH] Update httplib.h If no "Content-Length" is sent in the response-header the body is always empty #16 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 036fdd8..dda5cc3 100644 --- a/httplib.h +++ b/httplib.h @@ -1081,7 +1081,7 @@ inline bool Client::process_request(Stream& strm, const Request& req, Response& return false; } if (req.method != "HEAD") { - if (!detail::read_content(strm, res, false)) { + if (!detail::read_content(strm, res, true)) { return false; } }