diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-07-24 17:46:33 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-07-24 18:57:22 +0300 |
commit | ded2a1eb524a0f03337c272355cabcfb690b505b (patch) | |
tree | ea4a31525d4577077cf325bceaa82a86f4032de9 | |
parent | 62de0c68e793c694d9bb2386e837efe7320cced0 (diff) | |
download | bmcweb-ded2a1eb524a0f03337c272355cabcfb690b505b.tar.xz |
Add back reset body limit
This fixes a problem we are seeing in CI.
Was removed in 3909dc82a003893812f598434d6c4558107afa28.
Change-Id: If50b5fcf4e6106bf82be5c410fabe8211c9dec72
Tested: Code update via CI works.
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r-- | http/http_connection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/http/http_connection.h b/http/http_connection.h index e961255b82..9cf225f110 100644 --- a/http/http_connection.h +++ b/http/http_connection.h @@ -887,6 +887,8 @@ class Connection : BMCWEB_LOG_DEBUG << this << " Clearing response"; res.clear(); parser.emplace(std::piecewise_construct, std::make_tuple()); + parser->body_limit(httpReqBodyLimit); // reset body limit for + // newly created parser buffer.consume(buffer.size()); req.emplace(parser->get()); |