From 8413a5589efc50db5f75eb9a58c31262f9f1c96c Mon Sep 17 00:00:00 2001 From: scttpr Date: Wed, 24 Jul 2024 14:41:24 +0200 Subject: [PATCH] fix: update content-type for .well-known static files --- well_known/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/well_known/views.py b/well_known/views.py index 0bf26d4..b4548cd 100644 --- a/well_known/views.py +++ b/well_known/views.py @@ -7,6 +7,6 @@ def serve_text_file(request, file_name): try: with open(file_path, 'rb') as file: content = file.read() - return HttpResponse(content, content_type='text/plain') + return HttpResponse(content, content_type="text/plain; charset=utf-8") except FileNotFoundError: return HttpResponse(b"File not found.", status=404)