1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-08-11 13:09:46 +00:00

Fix data corruption when submitting a pastie.

This commit is contained in:
King_DuckZ 2017-06-08 23:38:11 +01:00
parent f3868e5b3f
commit 43e97ee79b
4 changed files with 4 additions and 4 deletions

View file

@ -44,7 +44,7 @@ namespace tawashi {
{
}
virtual cgi::PostMapType cgi_post() const override {
virtual const cgi::PostMapType& cgi_post() const override {
CHECK(not m_post_data.empty());
std::istringstream iss(m_post_data);
return cgi::read_post(iss, this->cgi_env(), this->settings().as<uint32_t>("max_post_size"));