summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorEd Tanous <etanous@nvidia.com>2024-07-16 05:09:01 +0300
committerEd Tanous <ed@tanous.net>2025-11-17 19:38:43 +0300
commit0ddb8edfb150ddf93b069e655ce3624d1e2fec54 (patch)
treee9a07a302ac37edc5d1ce418e8de7663408729cb /http
parentb69e69779d5ee38e474f7b8acc052664de3551d5 (diff)
downloadbmcweb-0ddb8edfb150ddf93b069e655ce3624d1e2fec54.tar.xz
Use std::format for hex conversions
Deprecate intoToHex handler now that we can do everything using std::format. Tested: RSV passes Redfish protocol validator passes Change-Id: I71000506573314d6c9326c4677f5fbca1ca02b46 Signed-off-by: Ed Tanous <etanous@nvidia.com>
Diffstat (limited to 'http')
-rw-r--r--http/http_response.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/http_response.hpp b/http/http_response.hpp
index 81c664a4f0..cbffdfcecf 100644
--- a/http/http_response.hpp
+++ b/http/http_response.hpp
@@ -259,7 +259,7 @@ struct Response
}
size_t hashval = std::hash<nlohmann::json>{}(jsonValue);
- return "\"" + intToHexString(hashval, 8) + "\"";
+ return std::format("\"{:08X}\"", hashval);
}
void write(std::string&& bodyPart)