Skip to content

Conversation

@valadaptive
Copy link

@valadaptive valadaptive commented Jul 20, 2025

This matches what serve-static does: it uses the mime-types package, which always sets charset=utf-8 for mimetypes beginning with text/.

The other two mimetypes, application/json and application/manifest+json, are the only two standard non-text mimetypes that have charset: "UTF-8" explicitly set in mime-db.

Resolves #171.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add charset=utf-8 to text files?

1 participant