diff options
author | Sunitha Harish <sunithaharish04@gmail.com> | 2021-02-01 11:11:49 +0300 |
---|---|---|
committer | Sunitha Harish <sunithaharish04@gmail.com> | 2021-02-14 19:29:12 +0300 |
commit | 086d32c5a61a29e92ac441e66fd4a53df4f2c8ec (patch) | |
tree | c033674fe49a3d54babb83f12f2b5ebf5d2838c6 /redfish-core/lib/managers.hpp | |
parent | db81c076c588497da718673ae6d952d348cccc02 (diff) | |
download | bmcweb-086d32c5a61a29e92ac441e66fd4a53df4f2c8ec.tar.xz |
IBM ConfigFile upload : Fix content-type validation
While uploading the ConfigFiles, BMC was only checking if it is
not multipart/form-data. This commit is to change the validation
to check for only allowed content-type: application/octet-stream
Tested by:
Uploaded Configfile with below content-types
1. application/octet-stream - passed
2. application/x-www-form-urlencoded - failed
3. application/json - failed
4. multipart/form-data - failed
5. text/plain - failed
6. application/octet-streamabcd - failed
Signed-off-by: Sunitha Harish <sunithaharish04@gmail.com>
Change-Id: Iedadacd2306f729479ee36afff52e29d8112daf6
Diffstat (limited to 'redfish-core/lib/managers.hpp')
0 files changed, 0 insertions, 0 deletions