diff options
-rw-r--r-- | redfish-core/lib/update_service.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index 53ee1ad3be..c8b13816ed 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -581,6 +581,15 @@ inline void requestRoutesUpdateService(App& app) "Service for Software Update"; asyncResp->res.jsonValue["Name"] = "Update Service"; +#ifdef BMCWEB_ENABLE_REDFISH_UPDATESERVICE_OLD_POST_URL + // See note about later on in this file about why this is neccesary + // This is "Wrong" per the standard, but is done temporarily to + // avoid noise in failing tests as people transition to having this + // option disabled + asyncResp->res.addHeader(boost::beast::http::field::allow, + "GET, PATCH, HEAD"); +#endif + asyncResp->res.jsonValue["HttpPushUri"] = "/redfish/v1/UpdateService/update"; |