Skip to content

Commit

Permalink
fix: update content-type for .well-known static files
Browse files Browse the repository at this point in the history
  • Loading branch information
scttpr authored and francoisfreitag committed Jul 25, 2024
1 parent 4b5577d commit 8413a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion well_known/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 8413a55

Please sign in to comment.