We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
charaset
4.6.13
Node.js 22
When a static JSON file is displayed with serveStatic(), application/json; charset=utf-8 is returned.
serveStatic()
application/json; charset=utf-8
The charset parameter is not required for the MIME type of a JSON.
charset
The current JSON specification (RFC 8259) does not allow anything other than UTF-8 to begin with.
In IANA, application/json is “Optional parameters: n/a”.
application/json
Therefore, the MIME type should be only application/json.
No response
I am ready to do PR !
The text was updated successfully, but these errors were encountered:
Hi @SaekiTominaga
You are right. It does not need the charset.
Please!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What version of Hono are you using?
4.6.13
What runtime/platform is your app running on? (with version if possible)
Node.js 22
What steps can reproduce the bug?
When a static JSON file is displayed with
serveStatic()
,application/json; charset=utf-8
is returned.What is the expected behavior?
The
charset
parameter is not required for the MIME type of a JSON.The current JSON specification (RFC 8259) does not allow anything other than UTF-8 to begin with.
In IANA,
application/json
is “Optional parameters: n/a”.Therefore, the MIME type should be only
application/json
.What do you see instead?
No response
Additional information
I am ready to do PR !
The text was updated successfully, but these errors were encountered: