mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-06 13:18:57 +08:00
Fix bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user