HTTP bodies should work nicely, files are reorganised, www is reverted
This commit is contained in:
@@ -27,7 +27,8 @@ std::string Helpers::GenerateResponse(std::string statusCode,
|
||||
std::string content) {
|
||||
std::stringstream output;
|
||||
output << "HTTP/1.1 " << statusCode << "\n"
|
||||
<< "Content-Type: " << contentType << "\nConnection: close\n\n"
|
||||
<< "Content-Type: " << contentType
|
||||
<< "\nContent-Length: " << content.size() << "\nConnection: close\n\n"
|
||||
<< content;
|
||||
return output.str();
|
||||
}
|
||||
|
Reference in New Issue
Block a user