]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Mbox.pm
wwwstream::oneshot => html_oneshot
[public-inbox.git] / lib / PublicInbox / Mbox.pm
index 46964bbb77cc5e49584dd35ea67c77ecaa221356..3013dc91d9e5609ad6de78a0b754bbb7076c72df 100644 (file)
@@ -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, \<<EOF);
+       html_oneshot($_[0], 501, \<<EOF);
 <pre>gzipped mbox not available
 
 The administrator needs to install the Compress::Raw::Zlib Perl module