Skip to content

Commit c909ffa

Browse files
committed
Fix #731
1 parent ff5677a commit c909ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4738,7 +4738,7 @@ inline bool ClientImpl::read_response_line(Stream &strm, Response &res) {
47384738
const static std::regex re("(HTTP/1\\.[01]) (\\d+) (.*?)\r\n");
47394739

47404740
std::cmatch m;
4741-
if (!std::regex_match(line_reader.ptr(), m, re)) { return false; }
4741+
if (!std::regex_match(line_reader.ptr(), m, re)) { return true; }
47424742
res.version = std::string(m[1]);
47434743
res.status = std::stoi(std::string(m[2]));
47444744
res.reason = std::string(m[3]);

0 commit comments

Comments
 (0)