asynqmon
asynqmon copied to clipboard
Add MIME type to served files
Currently, all JS files are served as "content-type: text/plain; charset=utf-8" which is a problem if MIME sniffing is disabled for the domain that Asynqmon is hosted on.
This PR sets the Content-Type header manually for files ending in .js and tries to detect the MIME type for other files.