Reviewed: https://review.openstack.org/208555 Committed: https://git.openstack.org/cgit/stackforge/wsme/commit/?id=078cd723655b4cf52835a66f19bd9a2b85d0b73a Submitter: Jenkins Branch: master
commit 078cd723655b4cf52835a66f19bd9a2b85d0b73a Author: Mehdi Abaakouk <email address hidden> Date: Mon Aug 3 18:28:23 2015 +0200
rest: return 415 when content-type is invalid
When the body of a POST request cannot be decoded because the content-type is not supported by any rest controller.
The server should return 415, not 500.
Related bug: #1419110
Change-Id: I8f8df4ab4062181e8d511e437a8486182c262ff8
Reviewed: https:/ /review. openstack. org/208555 /git.openstack. org/cgit/ stackforge/ wsme/commit/ ?id=078cd723655 b4cf52835a66f19 bd9a2b85d0b73a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 078cd723655b4cf 52835a66f19bd9a 2b85d0b73a
Author: Mehdi Abaakouk <email address hidden>
Date: Mon Aug 3 18:28:23 2015 +0200
rest: return 415 when content-type is invalid
When the body of a POST request cannot be decoded because
the content-type is not supported by any rest controller.
The server should return 415, not 500.
Related bug: #1419110
Change-Id: I8f8df4ab406218 1e8d511e437a848 6182c262ff8