Order matters when adding route with HEAD method
#3128
Unanswered
YuriiMotov
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently there is a pitfall with adding a route for
HEADmethod. If you add route withGETmethod and then add a route withHEADmethod for the same path - explicitly added route withHEADmethod will be ignored. Automatically addedHEADmethod will be used.Code example:
I'd like to discuss an idea. What if:
HEADmethod forGET-routesHEADmethod (explicitly added by developer) - use it, otherwise use route withGETmethod?
Beta Was this translation helpful? Give feedback.
All reactions