You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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.
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
The text was updated successfully, but these errors were encountered: