diff options
| author | Sandeep <sandeepap@ami.com> | 2025-09-23 14:00:59 +0300 |
|---|---|---|
| committer | Gunnar Mills <gunnar@gmills.xyz> | 2025-09-29 17:31:26 +0300 |
| commit | de5259d11d1f932fc87f3720d49914a42f8d2c59 (patch) | |
| tree | 552402a0ba81096f72de7c696499c3931f5c16a0 | |
| parent | f7e62c142ced153e9400b519bdd66062dd6bbf0e (diff) | |
| download | bmcweb-de5259d11d1f932fc87f3720d49914a42f8d2c59.tar.xz | |
Change error on FW update invalid Content-Type
Return 415 for invalid Content-Type in firmware update POST
Change-Id: I6b9cf6629c12ce191804bd0ce23bc97da9328c82
Signed-off-by: Sandeep Patil <sandeepap@ami.com>
| -rw-r--r-- | redfish-core/lib/update_service.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index 8a778f765a..72ade3cedf 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -1122,7 +1122,8 @@ inline void handleUpdateServiceMultipartUpdatePost( else { BMCWEB_LOG_DEBUG("Bad content type specified:{}", contentType); - asyncResp->res.result(boost::beast::http::status::bad_request); + asyncResp->res.result( + boost::beast::http::status::unsupported_media_type); } } |
