diff --git a/src/tawashi_implem/http_header.cpp b/src/tawashi_implem/http_header.cpp index 5814081..050191c 100644 --- a/src/tawashi_implem/http_header.cpp +++ b/src/tawashi_implem/http_header.cpp @@ -82,6 +82,7 @@ namespace tawashi { parStream << "Status: " << parHeader.status_code()._to_integral() << + ' ' << g_status_code_descriptions[parHeader.status_code()] << '\n' ; diff --git a/src/tawashi_implem/submit_paste_response.cpp b/src/tawashi_implem/submit_paste_response.cpp index ae7dc8b..cc14dc5 100644 --- a/src/tawashi_implem/submit_paste_response.cpp +++ b/src/tawashi_implem/submit_paste_response.cpp @@ -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)");