Response: addHeader(): Pass by value, not reference

This commit is contained in:
2021-10-09 00:31:14 +02:00
parent 92e7390056
commit 86ac86b83f
2 changed files with 4 additions and 4 deletions

View File

@@ -27,8 +27,8 @@ class Response
return this->html;
}
void addHeader(const std::string &key, const std::string &value);
static Response redirectTemporarily(const std::string &url);
void addHeader(std::string key, std::string value);
static Response redirectTemporarily(std::string url);
void setStatus(int status)
{