Fixed 'host' HTTP header not being sent

This commit is contained in:
Fred Nicolson
2016-12-11 15:14:23 +00:00
parent 98897dec02
commit 3b890972d1
7 changed files with 19 additions and 11 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ namespace fr
{
void HttpResponse::parse(const std::string &response_data)
{
std::cout << "Parsing: " << response_data << std::endl;
//Clear old headers/data
clear();
@@ -56,7 +57,7 @@ namespace fr
return;
}
std::string HttpResponse::construct() const
std::string HttpResponse::construct(const std::string &host) const
{
//Add HTTP header
std::string response = "HTTP/1.1 " + std::to_string(status) + " \r\n";