1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-02-09 09:23:56 +00:00

Fix sent http status codes.

This commit is contained in:
King_DuckZ 2017-05-18 19:08:39 +01:00
parent aaa28d3454
commit 71ec9925f4
2 changed files with 2 additions and 1 deletions

View file

@ -82,6 +82,7 @@ namespace tawashi {
parStream << parStream <<
"Status: " << "Status: " <<
parHeader.status_code()._to_integral() << parHeader.status_code()._to_integral() <<
' ' <<
g_status_code_descriptions[parHeader.status_code()] << g_status_code_descriptions[parHeader.status_code()] <<
'\n' '\n'
; ;

View file

@ -149,7 +149,7 @@ namespace tawashi {
statuslog->info("Pastie token=\"{}\" redirect=\"{}\"", *token, oss.str()); statuslog->info("Pastie token=\"{}\" redirect=\"{}\"", *token, oss.str());
if (not lang.empty()) if (not lang.empty())
oss << '?' << lang; oss << '?' << lang;
return this->make_redirect(HttpStatusCodes::CodeNone, oss.str()); return this->make_redirect(HttpStatusCodes::Code303_SeeOther, oss.str());
} }
else { else {
statuslog->info("Empty pastie token (possibly due to a previous failure)"); statuslog->info("Empty pastie token (possibly due to a previous failure)");