]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow only GET on Root controller
authorSalvatore Orlando <salv.orlando@gmail.com>
Thu, 13 Aug 2015 21:41:21 +0000 (14:41 -0700)
committergongysh <gong.yongsheng@99cloud.net>
Sat, 5 Sep 2015 07:21:01 +0000 (07:21 +0000)
commit4e4a6cff5d257c85fb062d660ef2d1c9d0941ce9
tree7fde109c29521e989df0c63a670818a1c138e99b
parentbdc2f109b8b17402f43206091a1e00479b236d7a
Allow only GET on Root controller

This patch simply ensures a 405 error is returned when a HTTP
method different from GET is invoked on '/'.
This differs from the eventlet WSGI server behaviour; however
returning the same response as for a GET for any method, even
made up ones - like 'meh' - is a mistake that should not be
repeated in the Pecan WSGI server.

Change-Id: I4305f374e4aacab718daa6f131f278cc69e8d699
neutron/pecan_wsgi/controllers/root.py
neutron/tests/functional/pecan_wsgi/test_functional.py