summaryrefslogtreecommitdiff
path: root/redfish-core
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2019-12-05 22:57:57 +0300
committerAdriana Kobylak <anoo@linux.ibm.com>2019-12-19 17:30:48 +0300
commit0e1cf26b1cd98e0ec069e6187434fcabf1e9c200 (patch)
treee390d202eafebcfb12378a64ea9d2d870c04d454 /redfish-core
parentc00500bcb9c5145f5cacb78bbe3dd694fb85ba0a (diff)
downloadbmcweb-0e1cf26b1cd98e0ec069e6187434fcabf1e9c200.tar.xz
Make the max http request body size configurable
OpenBMC supports "System" or "bundled" images that contain two or more firmware images, such as BMC and Host or PSU firmware, making the resulting image file greater than the current limit of 30MB. Make the http request body size configurable to allow bigger files to be uploaded. Tested: - Upload a regular BMC image still works. - Uploading a 50MB firmware image that contains the host fw fails: $ curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/octet-stream" -X POST -T obmc-phosphor-image-witherspoon-128.ubi.mtd.tar https://${bmc}/upload/image curl: (52) Empty reply from server - With the "-DBMCWEB_HTTP_REQ_BODY_LIMIT_MB=128" compile option works: $ curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/octet-stream" -X POST -T obmc-phosphor-image-witherspoon-128.ubi.mtd.tar https://${bmc}/upload/image { "data": "19e6fe13", "message": "200 OK", "status": "ok" } Change-Id: I0b0e1032c9daf00a01e42ac5ee1c0d979f857d5e Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'redfish-core')
0 files changed, 0 insertions, 0 deletions