Allow header returns the first route method it encounters #2738
Unanswered
ccrims0n
asked this question in
Potential Issue
Replies: 1 comment 1 reply
-
Seems valid. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
For the above application if I make a call to
curl -X PATCH /user/123 -d "name=XYZ"
it returns 405 status withAllow: GET
header.However, it should return 405 with
Allow: GET, PUT, DELETE
header.Looks like the
handle()
is only returning the methods of the first route it encountersIt should search for all the matching routes and handle the
Allow
header accordingly.Beta Was this translation helpful? Give feedback.
All reactions