-
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make automatic HEAD -> GET configurable #2247
Comments
Sounds like a router setting. 👍 |
This behavior is not very clear (using 4.12.2). Take for example, registering routes in this order:
Done this way you will never ever hit the
The |
@rsandor yes, this is a sad situation :( This is one of the reasons we added app.route('/resource/:id')
.get(getHandler)
.head(headHandler) |
As a bonus, using |
Sorry to bump an old issue - Is |
It is always preferred and more efficient in general, due to the stack being more compact. |
@dougwilson - Are the use of routes now enforced at an interface level in the newest versions of the library? If not, I highly suggest either making them so or simply fixing this issue. It seems like bad form to let a problem like this persist :/ |
@rsandor , you're welcome to express your displeasure of the pace of this project to callback@strongloop.com , as this project is under StrongLoop and I am just a Collaborator. |
@dougwilson - kudos for not answering my question and taking the critique as a personal attack. Sorry I confused you with someone who could have an impact on the project. |
No problem! |
The automatic conversion of
HEAD
requests toGET
requests when there is no HEAD method in the route should be configurable (i.e. turn it on or off).The text was updated successfully, but these errors were encountered: