summaryrefslogtreecommitdiff
path: root/http/http_client.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-06-28 22:07:22 +0300
committerEd Tanous <ed@tanous.net>2022-07-06 20:15:23 +0300
commit40d799e6fef1b39e35b4e0a0d1f5e44cb92a2de5 (patch)
treeaf4aff5c8f1999c1e025cfdc1ec08e5cbaebf818 /http/http_client.hpp
parent5ef735c8b7b7483037d0f287c8ddd642c0d885f2 (diff)
downloadbmcweb-40d799e6fef1b39e35b4e0a0d1f5e44cb92a2de5.tar.xz
Remove redfish message from http client
HttpClient these days is intended to be a generic feature. It should not be relying directly on Redfish messages. In this case, we only ever rely on the return code internally, so replace messages with a simple bad_gateway. Tested: Code compiles. Unit tests pass. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ie4bd65dc0b90b75f61ab0e31ca535eefbf0f4ebb
Diffstat (limited to 'http/http_client.hpp')
-rw-r--r--http/http_client.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/http_client.hpp b/http/http_client.hpp
index 1568b25c19..63c2611a2d 100644
--- a/http/http_client.hpp
+++ b/http/http_client.hpp
@@ -299,7 +299,7 @@ class ConnectionInfo : public std::enable_shared_from_this<ConnectionInfo>
// We want to return a 502 to indicate there was an error with the
// external server
res.clear();
- redfish::messages::operationFailed(res);
+ res.result(boost::beast::http::status::bad_gateway);
if (retryPolicy.retryPolicyAction == "TerminateAfterRetries")
{