]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: use PublicInbox::WwwStream
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 24 Feb 2021 08:54:56 +0000 (09:54 +0100)
committerEric Wong <e@80x24.org>
Wed, 24 Feb 2021 09:42:50 +0000 (05:42 -0400)
This prevents the following problem logged to the webserver's error log:

E: Undefined subroutine &PublicInbox::WwwStream::code_footer called at /usr/share/perl5/PublicInbox/WwwListing.pm line 102.
 in PublicInbox::ConfigIter=ARRAY(0x557aea68b1a8)::each_section at /usr/share/perl5/PublicInbox/ConfigIter.pm line 37.

Fixes: 7a3946ef122e ("www: support listing of inboxes")
lib/PublicInbox/WwwListing.pm

index d58618ccc01fc67b976d22f03eef87911d180262..f28eddf1abb7bb8c9d39410a2bce5e0d12fae011 100644 (file)
@@ -9,6 +9,7 @@ use PublicInbox::Hval qw(prurl fmt_ts);
 use PublicInbox::Linkify;
 use PublicInbox::GzipFilter qw(gzf_maybe);
 use PublicInbox::ConfigIter;
+use PublicInbox::WwwStream;
 use bytes (); # bytes::length
 
 sub ibx_entry {