Bubble [main]

Feeds: Error when checking unspecified content_mime parameter

=> 45f5e8f935f094393e7f53c81199a2274b4802fc

diff --git a/feeds.py b/feeds.py
index 2953fe0..9055aa7 100644
--- a/feeds.py
+++ b/feeds.py
@@ -139,7 +139,7 @@ def make_post_page_or_configure_feed(session):
                 return 10, f'New post in {session.context.title()}: (see Help for special commands)'
             seg_text = clean_query(req)
         else:
-            if not req.content_mime.startswith('text/'):
+            if req.content_mime and not req.content_mime.startswith('text/'):
                 return 50, 'Content must be text'
             seg_text = req.content.decode('utf-8')
 
Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/cdiff/45f5e8f935f094393e7f53c81199a2274b4802fc
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
26.981772 milliseconds
Gemini-to-HTML Time
0.139942 milliseconds

This content has been proxied by September (ba2dc).