X-Git-Url: https://code.kerkeslager.com/?p=fwx;a=blobdiff_plain;f=src%2Ffwx%2F__init__.py;h=2cbe707eaedd15da22fa13d44167363c1842cde4;hp=6ee7541cd8f08920853ce7e5b2d7dd234d6fc81e;hb=2e9a0dbf5bd8fb60f19bf2665fb4020a79320090;hpb=7b02629c8e924154857f35cef1364bef66fe3b75 diff --git a/src/fwx/__init__.py b/src/fwx/__init__.py index 6ee7541..2cbe707 100644 --- a/src/fwx/__init__.py +++ b/src/fwx/__init__.py @@ -174,7 +174,7 @@ class HTMLResponse(Response): return super().__new__( cls, content, - content_type='text/html', + content_type='text/html; charset=utf-8', **kwargs, ) @@ -186,7 +186,7 @@ class JSONResponse(Response): self = super().__new__( cls, content=json.dumps(content_json), - content_type='application/json', + content_type='application/json; charset=utf-8', **kwargs, ) self.content_json = content_json @@ -199,7 +199,7 @@ class TextResponse(Response): return super().__new__( cls, content, - content_type='text/plain', + content_type='text/plain; charset=utf-8', **kwargs, )