about summary refs log tree commit homepage
path: root/lib/PublicInbox/WWW.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-26 08:02:16 +0000
committerEric Wong <e@80x24.org>2021-04-26 10:44:29 +0000
commit60196eedef969743a76f915825b741b69ed1c171 (patch)
treea5c4a5e06d9f42ffecfc36462e7b541225b9838c /lib/PublicInbox/WWW.pm
parentd04a5a1eb026fa740e330d2b64af17d80e746624 (diff)
downloadpublic-inbox-60196eedef969743a76f915825b741b69ed1c171.tar.gz
Don't attempt to return HTTP 300 via Extmsg on it,
since whoever uses /raw is likely piping it to some
other command.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r--lib/PublicInbox/WWW.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index 456692a3..8f4bfd0f 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -272,7 +272,7 @@ sub get_index {
 sub get_mid_txt {
         my ($ctx) = @_;
         require PublicInbox::Mbox;
-        PublicInbox::Mbox::emit_raw($ctx) || r404($ctx);
+        PublicInbox::Mbox::emit_raw($ctx) || r(404);
 }
 
 # /$INBOX/$MESSAGE_ID/                   -> HTML content (short quotes)