From 2fc67a18b7ccd75ea6eb945f18203cbf4bcf228f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Mar 2020 00:18:42 -0500 Subject: wwwstream::oneshot => html_oneshot And use Exporter to make our life easier, since WwwAltId was using a non-existent PublicInbox::WwwResponse namespace in error paths which doesn't get noticed by `perl -c' or exercised by tests on normal systems. Fixes: 6512b1245ebc6fe3 ("www: add endpoint to retrieve altid dumps") --- lib/PublicInbox/Mbox.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/Mbox.pm') diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm index 46964bbb..3013dc91 100644 --- a/lib/PublicInbox/Mbox.pm +++ b/lib/PublicInbox/Mbox.pm @@ -13,6 +13,7 @@ use warnings; use PublicInbox::MID qw/mid_escape/; use PublicInbox::Hval qw/to_filename/; use PublicInbox::Smsg; +use PublicInbox::WwwStream qw(html_oneshot); use Email::Simple; use Email::MIME::Encode; @@ -236,7 +237,7 @@ sub mbox_all { } sub need_gzip { - PublicInbox::WwwStream::oneshot($_[0], 501, \<gzipped mbox not available The administrator needs to install the Compress::Raw::Zlib Perl module -- cgit v1.2.3-24-ge0c7