diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2019-11-27 03:29:34 +0300 |
---|---|---|
committer | Jason Bills <jason.m.bills@linux.intel.com> | 2019-12-02 19:53:55 +0300 |
commit | e195977836ef5135d9362f40e8755da8c34dc0d7 (patch) | |
tree | e098d05a90fd72df4d0086fcc7264ed2afd08999 /redfish-core/lib/update_service.hpp | |
parent | d819a420c04b4528c03ba749978338953868fff1 (diff) | |
download | bmcweb-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/update_service.hpp')
-rw-r--r-- | redfish-core/lib/update_service.hpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index da88271985..fde05ab4e8 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -141,7 +141,6 @@ static void monitorForSoftwareAvailable(std::shared_ptr<AsyncResp> asyncResp, { if (asyncResp) { - asyncResp->res.addHeader("Retry-After", "30"); messages::serviceTemporarilyUnavailable(asyncResp->res, "30"); } return; |