1
0
mirror of synced 2025-07-23 14:20:59 +03:00

Merge pull request #125 from const-volatile/master

Without Reason-Phrase read_response_line regex fails #124
This commit is contained in:
yhirose
2019-01-30 11:08:49 -05:00
committed by GitHub

View File

@ -2024,7 +2024,7 @@ inline bool Client::read_response_line(Stream& strm, Response& res)
return false; 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; std::cmatch m;
if (std::regex_match(reader.ptr(), m, re)) { if (std::regex_match(reader.ptr(), m, re)) {