#378 explictly set charset for jsonify()

https://webhint.io/docs/user-guide/hints/hint-content-type/ reference for best practice

Without this Microsoft Edge devtools post a warning
This commit is contained in:
clach04 2022-08-07 10:18:10 -07:00 committed by GitHub
parent 87584e89fe
commit 3290fe452e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,7 +163,7 @@ class DefaultJSONProvider(JSONProvider):
or ``None`` in debug mode, it will use a non-compact representation.
"""
mimetype = "application/json"
mimetype = "application/json; charset=utf-8"
"""The mimetype set in :meth:`response`."""
def dumps(self, obj: t.Any, **kwargs: t.Any) -> str: