node-static icon indicating copy to clipboard operation
node-static copied to clipboard

HEAD doesn't return Content-Type and Content-Length

Open dobesv opened this issue 14 years ago • 1 comments

The headers sent back by the HEAD HTTP method should be identical to those for a GET, including the Content-Type and Content-Length.

Just a minor compliance issue, though, I don't think HEAD is used much by HTTP clients out there.

See http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

dobesv avatar Nov 02 '11 04:11 dobesv

Put in a fix for this in https://github.com/cloudhead/node-static/pull/34

dobesv avatar Nov 02 '11 05:11 dobesv