mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Consistently return charset utf-8, closes #752
This commit is contained in:
parent
450d2e2896
commit
9424687e9e
4 changed files with 19 additions and 9 deletions
|
|
@ -828,7 +828,7 @@ class DatasetteRouter(AsgiRouter):
|
|||
view_name="page",
|
||||
)
|
||||
# Pull content-type out into separate parameter
|
||||
content_type = "text/html"
|
||||
content_type = "text/html; charset=utf-8"
|
||||
matches = [k for k in headers if k.lower() == "content-type"]
|
||||
if matches:
|
||||
content_type = headers[matches[0]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue