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:
parent
f94cc9409b
commit
b0c62fcab3
2 changed files with 2 additions and 2 deletions
|
@ -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()] <<
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue