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:
parent
f19d78222f
commit
85f6781d81
2 changed files with 19 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue