This commit is contained in:
2024-04-18 13:02:33 +08:00
parent 72f6f0ab66
commit f4f4446a0a

View File

@@ -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<std::string>(parts.begin() + 2, parts.end()), " ");
}
void Response::parseHeader(Request& req) {