From 28ad0ca68dc78acc56723af840c146cb40007f19 Mon Sep 17 00:00:00 2001 From: Constantin Date: Wed, 30 Jan 2019 12:12:47 +0900 Subject: [PATCH] Fixed #124 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index b0b5c88..701132f 100644 --- a/httplib.h +++ b/httplib.h @@ -2024,7 +2024,7 @@ inline bool Client::read_response_line(Stream& strm, Response& res) return false; } - const static std::regex re("(HTTP/1\\.[01]) (\\d+?) .+\r\n"); + const static std::regex re("(HTTP/1\\.[01]) (\\d+?) .*\r\n"); std::cmatch m; if (std::regex_match(reader.ptr(), m, re)) {