Skip to content
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

Mount doesn't seem to care what the HTTP method is. #75

Closed
ehiggs opened this issue Oct 2, 2015 · 1 comment
Closed

Mount doesn't seem to care what the HTTP method is. #75

ehiggs opened this issue Oct 2, 2015 · 1 comment

Comments

@ehiggs
Copy link

ehiggs commented Oct 2, 2015

If I mount a staticfile directory, making HEAD requests returns the file instead of just the metadata. It's not clear if this is a problem with mount or staticfile.

Example requests to try:

curl -XGET localhost:3000/somefile.txt

curl -XHEAD localhost:3000/somefile.txt

@ehiggs ehiggs changed the title Mount doesn't seem to care that the HTTP method is. Mount doesn't seem to care what the HTTP method is. Oct 2, 2015
@reem
Copy link
Member

reem commented Oct 2, 2015

Correct, checking the HTTP method is the responsibility of the Handlers within Mount - Mount is general purpose, and so is still usable even with nontraditional or custom methods.

I'd call this a problem with staticfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants