diff options
-rw-r--r-- | http/http2_connection.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/http/http2_connection.hpp b/http/http2_connection.hpp index 8416ff738b..d5f4481700 100644 --- a/http/http2_connection.hpp +++ b/http/http2_connection.hpp @@ -298,9 +298,9 @@ class HTTP2Connection : thisStream->second.reqReader; if (!reqReader) { - BMCWEB_LOG_ERROR("No reader init {}", streamId); - close(); - return -1; + reqReader.emplace( + bmcweb::HttpBody::reader(thisStream->second.req.req.base(), + thisStream->second.req.req.body())); } boost::beast::error_code ec; reqReader->put(boost::asio::const_buffer(data, len), ec); |