summaryrefslogtreecommitdiff
path: root/redfish-core/lib/certificate_service.hpp
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2019-11-27 03:29:34 +0300
committerJason Bills <jason.m.bills@linux.intel.com>2019-12-02 19:53:55 +0300
commite195977836ef5135d9362f40e8755da8c34dc0d7 (patch)
treee098d05a90fd72df4d0086fcc7264ed2afd08999 /redfish-core/lib/certificate_service.hpp
parentd819a420c04b4528c03ba749978338953868fff1 (diff)
downloadbmcweb-e195977836ef5135d9362f40e8755da8c34dc0d7.tar.xz
Add "Retry-After" header for temporarily unavailable messages
Whenever the Redfish response is that a service is temporarily unavailable, the "Retry-After" header is added with the same value, so just set the header automatically with the response. Tested: Confirmed that the "Retry-After" header is set correctly with the Redfish temporarily unavailable message. Change-Id: I9c940be94d9d284b9633c5caa2ce71ade76d22d5 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'redfish-core/lib/certificate_service.hpp')
-rw-r--r--redfish-core/lib/certificate_service.hpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp
index f82363bc3a..e15c308ee3 100644
--- a/redfish-core/lib/certificate_service.hpp
+++ b/redfish-core/lib/certificate_service.hpp
@@ -421,7 +421,6 @@ class CertificateActionGenerateCSR : public Node
static const int TIME_OUT = 10;
if (csrMatcher)
{
- res.addHeader("Retry-After", std::to_string(TIME_OUT));
messages::serviceTemporarilyUnavailable(asyncResp->res,
std::to_string(TIME_OUT));
return;