1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-11-27 00:43:47 +00:00

Add HTTP/1.1 to Status in cgi responses.

This commit is contained in:
King_DuckZ 2017-06-06 00:56:28 +01:00
parent f94cc9409b
commit b0c62fcab3
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ namespace tawashi {
const HttpStatusCodes code_none = HttpStatusCodes::CodeNone;
if (parHeader.status_code() != code_none) {
parStream <<
"Status: " <<
"Status: HTTP/1.1 " <<
parHeader.status_code()._to_integral() <<
' ' <<
g_status_code_descriptions[parHeader.status_code()] <<

View file

@ -146,7 +146,7 @@ TEST_CASE ("Submit paste response", "[submitpaste][response]") {
{
std::string output = oss.str();
const char expected[] = "Status: 303 See Other\n"
const char expected[] = "Status: HTTP/1.1 303 See Other\n"
"Location: http://192.168.0.10/kamokan/b?colourless\n\n"
;
CHECK(output == expected);