mime_guess
mime_guess copied to clipboard
Add `charset=utf-8` to text mime types
I'm guessing mime types from extensions, but I know that whenever it's a text-based format, it's utf-8. Would it be possible to support guessing charset=utf-8
where permissible? I.e. returning text/html; charset=utf-8
when the path ends in .html
?