1
0
Fork 0
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:
King_DuckZ 2017-05-23 20:29:17 +01:00
parent 847988f4bd
commit 53b5a1a2af
2 changed files with 23 additions and 1 deletions

View file

@ -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