diff options
Diffstat (limited to 'http')
-rw-r--r-- | http/http_body.hpp | 1 | ||||
-rw-r--r-- | http/http_response.hpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/http/http_body.hpp b/http/http_body.hpp index 4b58f213b1..f2ec53fec2 100644 --- a/http/http_body.hpp +++ b/http/http_body.hpp @@ -117,6 +117,7 @@ class HttpBody::value_type strBody.shrink_to_fit(); fileHandle = boost::beast::file_posix(); fileSize = std::nullopt; + encodingType = EncodingType::Raw; } void open(const char* path, boost::beast::file_mode mode, diff --git a/http/http_response.hpp b/http/http_response.hpp index afd51c1420..c93d60d685 100644 --- a/http/http_response.hpp +++ b/http/http_response.hpp @@ -190,6 +190,7 @@ struct Response { BMCWEB_LOG_DEBUG("{} Clearing response containers", logPtr(this)); response.clear(); + response.body().clear(); jsonValue = nullptr; completed = false; |