From f4f4446a0aabebf6b458d7bdd5e425e0efbc5321 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 18 Apr 2024 13:02:33 +0800 Subject: [PATCH] Fix bug --- http_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_client.cpp b/http_client.cpp index 75f1b5f..78ad978 100644 --- a/http_client.cpp +++ b/http_client.cpp @@ -537,7 +537,7 @@ void Response::parseStatus() { if (sscanf(parts[1].c_str(), "%" SCNu16, &this->code) != 1) { throw std::runtime_error("Invalid HTTP status code"); } - this->reason = str_util::str_join(std::list(parts.begin() + 2, parts.end()), " "); + this->reason = str_util::str_join(std::list(parts.begin() + 2, parts.end()), " "); } void Response::parseHeader(Request& req) {