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
It seems to me the original reporter is saying that HEAD requests should be handled as GET requests, just adding a req.method !== 'HEAD' to the conditional. It seems to me this wouldn't be harmful, but it may be nice to respond with empty content for a HEAD request. Currently I'm putting a another middleware in front of this to handle HEAD requests.
Activity
evenstensberg commentedon Mar 5, 2018
Could you elaborate a bit more in depth about this, maybe the problem you are trying to solve as well as how you'd think it should look like?
shellscape commentedon Mar 5, 2018
Closing as invalid, since the issue template was removed.
michaek commentedon Jul 26, 2018
It seems to me the original reporter is saying that HEAD requests should be handled as GET requests, just adding a
req.method !== 'HEAD'to the conditional. It seems to me this wouldn't be harmful, but it may be nice to respond with empty content for a HEAD request. Currently I'm putting a another middleware in front of this to handle HEAD requests.