mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Fix #860
This commit is contained in:
parent
bc80d7c789
commit
cf475bcb50
2 changed files with 2 additions and 1 deletions
|
@ -5257,7 +5257,7 @@ inline bool ClientImpl::read_response_line(Stream &strm, const Request &req,
|
|||
|
||||
if (!line_reader.getline()) { return false; }
|
||||
|
||||
const static std::regex re("(HTTP/1\\.[01]) (\\d{3}) (.*?)\r\n");
|
||||
const static std::regex re("(HTTP/1\\.[01]) (\\d{3})(?: (.*?))?\r\n");
|
||||
|
||||
std::cmatch m;
|
||||
if (!std::regex_match(line_reader.ptr(), m, re)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue