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:
parent
aaa28d3454
commit
71ec9925f4
2 changed files with 2 additions and 1 deletions
|
@ -82,6 +82,7 @@ namespace tawashi {
|
|||
parStream <<
|
||||
"Status: " <<
|
||||
parHeader.status_code()._to_integral() <<
|
||||
' ' <<
|
||||
g_status_code_descriptions[parHeader.status_code()] <<
|
||||
'\n'
|
||||
;
|
||||
|
|
|
@ -149,7 +149,7 @@ namespace tawashi {
|
|||
statuslog->info("Pastie token=\"{}\" redirect=\"{}\"", *token, oss.str());
|
||||
if (not lang.empty())
|
||||
oss << '?' << lang;
|
||||
return this->make_redirect(HttpStatusCodes::CodeNone, oss.str());
|
||||
return this->make_redirect(HttpStatusCodes::Code303_SeeOther, oss.str());
|
||||
}
|
||||
else {
|
||||
statuslog->info("Empty pastie token (possibly due to a previous failure)");
|
||||
|
|
Loading…
Add table
Reference in a new issue