diff options
author | Martin Herkt <lachs0r@srsfckn.biz> | 2016-11-01 21:53:10 +0100 |
---|---|---|
committer | Martin Herkt <lachs0r@srsfckn.biz> | 2016-11-01 21:53:10 +0100 |
commit | 200d0a369f0aae45434ed207ca2e59fa0a36f58a (patch) | |
tree | b88215be5a598480501f533acdc914e0e91d50a8 /fhost.py | |
parent | init (diff) | |
download | hex-zero-200d0a369f0aae45434ed207ca2e59fa0a36f58a.tar.gz hex-zero-200d0a369f0aae45434ed207ca2e59fa0a36f58a.tar.bz2 hex-zero-200d0a369f0aae45434ed207ca2e59fa0a36f58a.zip |
fix text/ MIME charset workaround
Diffstat (limited to 'fhost.py')
-rwxr-xr-x | fhost.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] |