From 66cc5b69e597087e8ab5b52f8e8aff1d942d6674 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 18 Oct 2021 12:14:14 +0200 Subject: [PATCH] Add missing content type for text. --- src/catalogue/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/catalogue/constants.py b/src/catalogue/constants.py index 4eb84c60a..6925880a1 100644 --- a/src/catalogue/constants.py +++ b/src/catalogue/constants.py @@ -34,7 +34,7 @@ EBOOK_FORMATS = EBOOK_FORMATS_WITHOUT_CHILDREN + EBOOK_FORMATS_WITH_CHILDREN EBOOK_CONTENT_TYPES = { 'html': 'text/html', 'pdf': 'application/pdf', - 'txt': 'text/plain', + 'txt': 'text/plain; charset=utf-8', 'epub': 'application/epub+zip', 'mobi': 'application/x-mobipocket-ebook', 'fb2': 'text/xml', -- 2.20.1