mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-08-07 12:59:45 +00:00
Hack to quickly get a new pastie's address when invoked from curl.
This commit is contained in:
parent
847988f4bd
commit
53b5a1a2af
2 changed files with 23 additions and 1 deletions
|
@ -39,6 +39,12 @@ namespace tawashi {
|
|||
private:
|
||||
typedef std::pair<boost::optional<std::string>, HttpHeader> StringOrHeader;
|
||||
virtual HttpHeader on_process() override;
|
||||
virtual void on_mustache_prepare (mstch::map& parContext) override;
|
||||
virtual std::string on_mustache_retrieve() override;
|
||||
StringOrHeader submit_to_redis (const boost::string_ref& parText, uint32_t parExpiry, const boost::string_ref& parLang);
|
||||
|
||||
//TODO: remove, this shouldn't be in this class, nor on_mustache_prepare
|
||||
//or on_mustache_retrieve.
|
||||
std::string m_redirect_to;
|
||||
};
|
||||
} //namespace tawashi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue