diff options
Diffstat (limited to 'redfish-core/lib/update_service.hpp')
-rw-r--r-- | redfish-core/lib/update_service.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index bfab6fbe1f..7ca078701b 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -15,6 +15,8 @@ */ #pragma once +#include "bmcweb_config.h" + #include <app.hpp> #include <boost/container/flat_map.hpp> #include <utils/fw_utils.hpp> @@ -523,6 +525,10 @@ inline void requestRoutesUpdateService(App& app) asyncResp->res.jsonValue["ServiceEnabled"] = true; asyncResp->res.jsonValue["FirmwareInventory"] = { {"@odata.id", "/redfish/v1/UpdateService/FirmwareInventory"}}; + // Get the MaxImageSizeBytes + asyncResp->res.jsonValue["MaxImageSizeBytes"] = + bmcwebHttpReqBodyLimitMb * 1024 * 1024; + #ifdef BMCWEB_INSECURE_ENABLE_REDFISH_FW_TFTP_UPDATE // Update Actions object. nlohmann::json& updateSvcSimpleUpdate = |