diff options
author | Jaeseung Ha <ipknhama@gmail.com> | 2016-03-14 19:46:21 +0900 |
---|---|---|
committer | Jaeseung Ha <ipknhama@gmail.com> | 2016-03-14 19:46:21 +0900 |
commit | 975205075dd61dcdfff4a206b10a6ac14e87f954 (patch) | |
tree | 28c49190a8748c7fd7cb127272139eb11bf6a52e /include | |
parent | 0bef5731e6a2650803c7523509ad832febff5d60 (diff) | |
parent | dbd7c2fbe0e93d85c4be7b61ed07568285e4a684 (diff) | |
download | crow-975205075dd61dcdfff4a206b10a6ac14e87f954.tar.gz crow-975205075dd61dcdfff4a206b10a6ac14e87f954.zip |
Merge pull request #123 from pierobot/fix-corrupt-buffers
Fix corrupt buffers
Diffstat (limited to 'include')
-rw-r--r-- | include/http_connection.h | 2 |
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) { |