Template
1
0

HTTP bodies should work nicely, files are reorganised, www is reverted

This commit is contained in:
2025-07-02 18:58:40 +03:00
parent 14394f1c9f
commit 0b483c69cb
7 changed files with 98 additions and 92 deletions

View File

@@ -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();
}