diff --git a/composer.py b/composer.py

index 0780cce..ec4b501 100644

--- a/composer.py

+++ b/composer.py

@@ -531,9 +531,12 @@ def make_comment(session):

         com_text = com_text[:-1].strip()

         special = 'draft'

 else:

- if not req.content_mime.startswith('text/'):

- return 50, 'Content must be text'

- com_text = req.content.decode('utf-8')

+ try:

+ if req.content_mime and not req.content_mime.startswith('text/'):

+ return 50, 'Content must be text'

+ com_text = req.content.decode('utf-8')

+ except:

+ return 50, 'Content must be UTF-8 encoded text'



 com_id = db.create_post(session.user, post.subspace, parent=post.id)

 com = db.get_post(com_id, draft=True)

Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/pcdiff/8222b54abdde4d328e98c167f13732dc0188f6a8
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
58.942418 milliseconds
Gemini-to-HTML Time
0.580417 milliseconds

This content has been proxied by September (ba2dc).