f6f0d1bae8
POSTing to /servers with a content-type of text/plain
and a text/plain body results in a response code of 400.
It should be 415. I found this line in the code that
appears to handle this singular case and modified
the HTTP exception used to the correct one. Tests were
also updated accordingly.
Conflicts:
nova/api/openstack/wsgi.py
nova/tests/unit/api/openstack/compute/legacy_v2/test_servers.py
Change-Id: I5fa1fdba56803b2ef63b1efaaeeced6ceb7779d9
Closes-Bug: 1567977
(cherry picked from commit
|
||
---|---|---|
.. | ||
compute | ||
__init__.py | ||
common.py | ||
fakes.py | ||
test_api_version_request.py | ||
test_common.py | ||
test_faults.py | ||
test_legacy_v2_compatible_wrapper.py | ||
test_mapper.py | ||
test_wsgi.py |