diff options
Diffstat (limited to 'http_response.h')
-rw-r--r-- | http_response.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/http_response.h b/http_response.h index 7927d6d..4f19848 100644 --- a/http_response.h +++ b/http_response.h @@ -33,9 +33,7 @@ namespace flask std::unordered_map<std::string, std::string> headers; response() {} response(int status) : status(status) {} - response(const std::string& body) : body(body) {} - response(std::string&& body) : body(std::move(body)) {} - response(const std::string& body, int status) : body(body), status(status) {} - response(std::string&& body, int status) : body(std::move(body)), status(status) {} + response(std::string body) : body(std::move(body)) {} + response(std::string body, int status) : body(std::move(body)), status(status) {} }; } |