Optimize performance

This commit is contained in:
Tindy X committed 2020-07-05 02:39:00 +08:00
1 parent c2564a6fd9
commit 6cb369fa34
8 files changed
+62 -62

No files matched your search

+1 -1
View File
@@ -322,7 +322,7 @@ void append_response(const std::string &method, const std::string &uri, const st
rr.path = uri;
rr.content_type = content_type;
rr.rc = response;
responses.emplace_back(rr);
responses.emplace_back(std::move(rr));
}
void append_redirect(const std::string &uri, const std::string &target)