1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-08-07 12:59:45 +00:00

Fix tawashi sending back an html response even for redirects.

This commit is contained in:
King_DuckZ 2017-05-16 22:58:09 +01:00
parent f19d78222f
commit 85f6781d81
2 changed files with 19 additions and 13 deletions

View file

@ -22,6 +22,7 @@
#include <string>
#include <boost/optional.hpp>
#include <boost/utility/string_ref.hpp>
#include <cassert>
namespace tawashi {
class SubmitPasteResponse : public Response {
@ -33,7 +34,7 @@ namespace tawashi {
);
protected:
virtual boost::string_ref page_basename() const override { return boost::string_ref("paste"); }
virtual boost::string_ref page_basename() const override { assert(false); return boost::string_ref(""); }
private:
virtual void on_process() override;