This change adds support for responding to unsupported methods for all
routes. Invoking a route with an unsupported request method returns a 405
status code, and the response includes the 'Allow' header listing the
request methods supported by the requested URL. The OPTIONS request method
is also automatically supported for all URLs, with the response
returning the 'Allow' header. The way routes are registered has been
changed so that unsupported methods can be detected automatically.
Reviewed: https:/ /review. openstack. org/120914 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=8a2e0aff98b 54f73773fb2e357 70e1c35ec460a9
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8a2e0aff98b54f7 3773fb2e35770e1 c35ec460a9
Author: Miguel Grinberg <email address hidden>
Date: Thu Sep 11 03:47:54 2014 +0000
proper handling of unsupported request methods
This change adds support for responding to unsupported methods for all
routes. Invoking a route with an unsupported request method returns a 405
status code, and the response includes the 'Allow' header listing the
request methods supported by the requested URL. The OPTIONS request method
is also automatically supported for all URLs, with the response
returning the 'Allow' header. The way routes are registered has been
changed so that unsupported methods can be detected automatically.
Change-Id: I2de28e0fc6cd35 ed060395405aa37 70b1dc73376
Closes-Bug: 1367057
APIImpact
DocImpact