0x0

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 200d0a369f0aae45434ed207ca2e59fa0a36f58a
parent 56f0295be203771f59e94162b62fa17d4fea54a3
Author: Martin Herkt <lachs0r@srsfckn.biz>
Date:   Tue,  1 Nov 2016 21:53:10 +0100

fix text/ MIME charset workaround

Diffstat:
Mfhost.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fhost.py b/fhost.py @@ -143,7 +143,7 @@ def store_file(f, addr): if mime in app.config["FHOST_MIME_BLACKLIST"] or guessmime in app.config["FHOST_MIME_BLACKLIST"]: abort(415) - if mime.startswith("text/") and not "charset" in f.mime: + if mime.startswith("text/") and not "charset" in f.content_type: mime += "; charset=utf-8" ext = os.path.splitext(f.filename)[1]