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

read content-type from response

Open leviwheatcroft opened this issue 9 years ago • 0 comments

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.

leviwheatcroft avatar Oct 16 '16 00:10 leviwheatcroft