diff options
author | Ed Tanous <ed@tanous.net> | 2024-04-02 21:00:54 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-04-04 01:13:56 +0300 |
commit | 8e5cc7bdbf8727e9527d23973f81702799e80bd8 (patch) | |
tree | d1b5960f095505543ef2599a0c3cf8cd5b2b5205 /http | |
parent | 296579be4c16e570ba8dcc65e7fe992cdc03e2a3 (diff) | |
download | bmcweb-8e5cc7bdbf8727e9527d23973f81702799e80bd8.tar.xz |
Fix http2 payloads
d547d8d2c30a7d00852855da8ecc15c0cc424b0e caused a minor regression in a
poorly executed merge conflict. The reqReader instance never gets
initialized, so all payloads now fail.
Tested: Redfish service validator modified to use http2 now succeeds
when using http/2.
Change-Id: If00f5bc1d1a70396171eddd6a643fbd860e8508c
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'http')
-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); |