about summary refs log tree commit homepage
path: root/lib/PublicInbox/WWW.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-23 01:54:16 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-23 01:58:40 +0000
commit41654a8cd9372c0640c4ca5339e5881927965e41 (patch)
tree60f475bc00157cb124de54bfe63622e34219cb05 /lib/PublicInbox/WWW.pm
parentf6285ab9d73a4eae490dda325096e61eadc415cd (diff)
downloadpublic-inbox-41654a8cd9372c0640c4ca5339e5881927965e41.tar.gz
Since v2 supports duplicate messages, we need to support
looking up different messages with the same Message-Id.
Fortunately, our "raw" endpoint has always been mboxrd,
so users won't need to change their parsing tools.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r--lib/PublicInbox/WWW.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index e95fba08..f86363c6 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -218,9 +218,8 @@ sub mid2blob {
 # /$INBOX/$MESSAGE_ID/raw                    -> raw mbox
 sub get_mid_txt {
         my ($ctx) = @_;
-        my $x = mid2blob($ctx) or return r404($ctx);
         require PublicInbox::Mbox;
-        PublicInbox::Mbox::emit1($ctx, $x);
+        PublicInbox::Mbox::emit_raw($ctx) || r404($ctx);
 }
 
 # /$INBOX/$MESSAGE_ID/                   -> HTML content (short quotes)