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:
parent
f3868e5b3f
commit
43e97ee79b
4 changed files with 4 additions and 4 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue