summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2016-11-01 21:53:10 +0100
committerMartin Herkt <lachs0r@srsfckn.biz>2016-11-01 21:53:10 +0100
commit200d0a369f0aae45434ed207ca2e59fa0a36f58a (patch)
treeb88215be5a598480501f533acdc914e0e91d50a8
parent56f0295be203771f59e94162b62fa17d4fea54a3 (diff)
fix text/ MIME charset workaround
-rwxr-xr-xfhost.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fhost.py b/fhost.py
index 1b9a4c7..ce48c03 100755
--- 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]