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.
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 usingres.getHeader
you allow this header to be explicitly set on this response outside this module.