#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:
parent
87584e89fe
commit
3290fe452e
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue