From 45f5e8f935f094393e7f53c81199a2274b4802fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Mon, 9 Sep 2024 07:13:59 +0300
Subject: [PATCH 1/1] Feeds: Error when checking unspecified content_mime
parameter
feeds.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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')
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).