[OpenStreetMap] #4636: API User Details returns 404 instead of 405
OpenStreetMap
trac at noreply.openstreetmap.org
Wed Oct 17 16:15:26 GMT 2012
#4636: API User Details returns 404 instead of 405
-----------------------+-------------------------
Reporter: andrew@… | Owner: rails-dev@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: api | Version:
Resolution: | Keywords:
-----------------------+-------------------------
Comment (by TomH):
Well you can't have a default route that returns 405 because then it would
do so for URLs which really don't exist.
You would have to duplicate each URL with a second "match all" version
that returned 405 and that is just not scalable.
This should really be fixed in rails' URL matcher so that it remembers if
the URL would have matched except for the method qualification and then
returns 405 in that case.
--
Ticket URL: <https://trac.openstreetmap.org/ticket/4636#comment:3>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the rails-dev
mailing list