Correctly return files of the correct type #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
set the content-type response header appropriately based on a) file extension and b) Accept request header. Currently the blog is broken because the css is returned as text/plain!
Pull request
d214b0bf86
fixed this issue, recognising text/javascript, text/css, text/html, image/png, and image/jpeg automatically based on file extensions and setting the Content-Type header accordingly. Otherwise, the Content-Type header is not set and is left to MIME sniffing or whatever on the browser side or on the part of a reverse proxy a user may be using (ferron, nginx, caddy, etc.)