asynqmon icon indicating copy to clipboard operation
asynqmon copied to clipboard

Add MIME type to served files

Open ArneZsng opened this issue 2 years ago • 0 comments

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.

ArneZsng avatar Aug 23 '22 16:08 ArneZsng