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/log_services.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/log_services.hpp')
-rw-r--r-- | redfish-core/lib/log_services.hpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index 2eb00b6832..0f4a90226f 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -1875,7 +1875,6 @@ class OnDemandCrashdump : public Node // Only allow one OnDemand Log request at a time if (onDemandLogMatcher != nullptr) { - asyncResp->res.addHeader("Retry-After", "30"); messages::serviceTemporarilyUnavailable(asyncResp->res, "30"); return; } |