node-static
node-static copied to clipboard
read content-type from response
currently I don't think there's any way to set headers on a per request basis.. this patch allows headers to be set prior to calling nodeStatic.serve.
In addition, currently Content-Type would never be set before being read at line 347, by using res.getHeader you allow this header to be explicitly set on this response outside this module.