Dynamic assets are not sent with Content-Type header
bclinkinbeard opened this issue · comments
https://github.com/azer/prova/blob/master/lib/browser.js#L72 does the thing, I'm not sure what is the best way to deal with this actually
I think you could just do a check of the file extension and then add if (!res.headersSent) res.setHeader('Content-Type', 'text/' + matchedType)
Just noticed this, which does Content-Type for streaming. https://github.com/maxogden/gput/blob/master/cli.js
fixed by 1.9.0
Nice, thanks!