aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/http_connection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/http_connection.h b/include/http_connection.h
index de89022..69b87b0 100644
--- a/include/http_connection.h
+++ b/include/http_connection.h
@@ -430,7 +430,6 @@ namespace crow
buffers_.emplace_back(res_body_copy_.data(), res_body_copy_.size());
do_write();
- res.clear();
if (need_to_start_read_after_complete_)
{
@@ -488,6 +487,7 @@ namespace crow
[&](const boost::system::error_code& ec, std::size_t bytes_transferred)
{
is_writing = false;
+ res.clear();
res_body_copy_.clear();
if (!ec)
{