From ded2a1eb524a0f03337c272355cabcfb690b505b Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Fri, 24 Jul 2020 09:46:33 -0500 Subject: 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 --- http/http_connection.h | 2 ++ 1 file changed, 2 insertions(+) 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()); -- cgit v1.2.3