diff options
author | Dan Prince <dprince@redhat.com> | 2013-02-15 10:41:30 -0500 |
---|---|---|
committer | Dan Prince <dprince@redhat.com> | 2013-02-22 12:21:51 -0500 |
commit | 20fb97df97cdfcbc1d98a0b1f7d94806d996e274 (patch) | |
tree | dc093ae87e8c16d52f915e5c7162dc8718da22f4 /nova/utils.py | |
parent | a42845e455c74f41852babbbd09a3514021ea71d (diff) | |
download | nova-20fb97df97cdfcbc1d98a0b1f7d94806d996e274.tar.gz nova-20fb97df97cdfcbc1d98a0b1f7d94806d996e274.tar.xz nova-20fb97df97cdfcbc1d98a0b1f7d94806d996e274.zip |
Updates to OSAPI sizelimit middleware.
Updates the OSAPI sizelimit middleware so that we use avoid calling
len on a request body which could cause a really large request
to get buffered into memory.
Also updates the middleware to return HTTP 413 which is a more
correct error code in this case (previously it returned just 400).
Fixes LP Bug #1131857.
Change-Id: Id8bc5eeb0fba9482809edd12543a75163e1227e9
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions