=> 8222b54abdde4d328e98c167f13732dc0188f6a8
[1mdiff --git a/composer.py b/composer.py[m [1mindex 0780cce..ec4b501 100644[m [1m--- a/composer.py[m [1m+++ b/composer.py[m [36m@@ -531,9 +531,12 @@[m [mdef make_comment(session):[m com_text = com_text[:-1].strip()[m special = 'draft'[m else:[m [31m- if not req.content_mime.startswith('text/'):[m [31m- return 50, 'Content must be text'[m [31m- com_text = req.content.decode('utf-8')[m [32m+[m[32m try:[m [32m+[m[32m if req.content_mime and not req.content_mime.startswith('text/'):[m [32m+[m[32m return 50, 'Content must be text'[m [32m+[m[32m com_text = req.content.decode('utf-8')[m [32m+[m[32m except:[m [32m+[m[32m return 50, 'Content must be UTF-8 encoded text'[m [m com_id = db.create_post(session.user, post.subspace, parent=post.id)[m com = db.get_post(com_id, draft=True)[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).