Implement HTTP HEAD method correctly
Closed this issue · 0 comments
Jonny007-MKD commented
Sorry for the empty issue.
As you @unknwon mentioned in gogs/gogs#2857 macaron handles HEAD identical to GET and thus violates the spec:
https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request.
Currently I've got no device to check what macaron does with HEAD requests, so I simply trust you and file this issue :)