Response: addHeader(): Pass by value, not reference
此提交包含在:
		@@ -32,12 +32,12 @@ Response::Response(int http_status_code, std::string html)
 | 
			
		||||
	this->html = std::move(html);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Response::addHeader(const std::string &key, const std::string &value)
 | 
			
		||||
void Response::addHeader(std::string key, std::string value)
 | 
			
		||||
{
 | 
			
		||||
	this->responseHeaders.insert(std::make_pair(key, value));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Response Response::redirectTemporarily(const std::string &url)
 | 
			
		||||
Response Response::redirectTemporarily(std::string url)
 | 
			
		||||
{
 | 
			
		||||
	Response result;
 | 
			
		||||
	result.addHeader("Location", url);
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
	{
 | 
			
		||||
 
 | 
			
		||||
		新增問題並參考
	
	封鎖使用者