From c909ffa7583f0a5c1b04471890403f3d2a734362 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sun, 1 Nov 2020 21:03:47 -0500 Subject: [PATCH] Fix #731 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 830fe30..fecd8fa 100644 --- a/httplib.h +++ b/httplib.h @@ -4738,7 +4738,7 @@ inline bool ClientImpl::read_response_line(Stream &strm, Response &res) { const static std::regex re("(HTTP/1\\.[01]) (\\d+) (.*?)\r\n"); std::cmatch m; - if (!std::regex_match(line_reader.ptr(), m, re)) { return false; } + if (!std::regex_match(line_reader.ptr(), m, re)) { return true; } res.version = std::string(m[1]); res.status = std::stoi(std::string(m[2])); res.reason = std::string(m[3]);