Proper HEAD
support for static routes
#2337
Labels
enhancement
good first issue
Comment on this issue if you'd like to volunteer to work on this. Thanks!
needs contributor
Comment on this issue if you'd like to volunteer to work on this. Thanks!
Milestone
Implement proper
HEAD
support for static file serving.The response should follow the same logic as the default
GET
behaviour (like now), but not open any file streams (because we do not need any as the response to aHEAD
request cannot have any body anyway).As a bonus, I think we need to block unsupported methods such as
POST
andPUT
, and render the correctAllow
header in response toOPTIONS
.The text was updated successfully, but these errors were encountered: