azer / prova

Test runner based on Tape and Browserify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic assets are not sent with Content-Type header

bclinkinbeard opened this issue · comments

Viewing the console when running tests in the browser includes these warnings. Obviously not a big deal, just FYI.

image

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!