mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-02-17 09:35:49 +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;
|
const HttpStatusCodes code_none = HttpStatusCodes::CodeNone;
|
||||||
if (parHeader.status_code() != code_none) {
|
if (parHeader.status_code() != code_none) {
|
||||||
parStream <<
|
parStream <<
|
||||||
"Status: " <<
|
"Status: HTTP/1.1 " <<
|
||||||
parHeader.status_code()._to_integral() <<
|
parHeader.status_code()._to_integral() <<
|
||||||
' ' <<
|
' ' <<
|
||||||
g_status_code_descriptions[parHeader.status_code()] <<
|
g_status_code_descriptions[parHeader.status_code()] <<
|
||||||
|
|
|
@ -146,7 +146,7 @@ TEST_CASE ("Submit paste response", "[submitpaste][response]") {
|
||||||
|
|
||||||
{
|
{
|
||||||
std::string output = oss.str();
|
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"
|
"Location: http://192.168.0.10/kamokan/b?colourless\n\n"
|
||||||
;
|
;
|
||||||
CHECK(output == expected);
|
CHECK(output == expected);
|
||||||
|
|
Loading…
Add table
Reference in a new issue