diff options
author | Eric Wong <e@yhbt.net> | 2020-03-30 00:18:42 -0500 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-03-30 17:49:28 +0000 |
commit | 2fc67a18b7ccd75ea6eb945f18203cbf4bcf228f (patch) | |
tree | bd039357e25d31f14caf0144175eae14cfdeafc2 /lib/PublicInbox/ExtMsg.pm | |
parent | 99ba1517d9a636d72b014c3d89f176575bdfcc59 (diff) | |
download | public-inbox-2fc67a18b7ccd75ea6eb945f18203cbf4bcf228f.tar.gz |
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")
Diffstat (limited to 'lib/PublicInbox/ExtMsg.pm')
-rw-r--r-- | lib/PublicInbox/ExtMsg.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm index a14eddf6..1d17c2ce 100644 --- a/lib/PublicInbox/ExtMsg.pm +++ b/lib/PublicInbox/ExtMsg.pm @@ -9,7 +9,7 @@ package PublicInbox::ExtMsg; use strict; use warnings; use PublicInbox::Hval qw(ascii_html prurl mid_href); -use PublicInbox::WwwStream; +use PublicInbox::WwwStream qw(html_oneshot); use PublicInbox::Smsg; our $MIN_PARTIAL_LEN = 16; @@ -159,7 +159,7 @@ sub ext_msg { $ctx->{-html_tip} = $s .= '</pre>'; $ctx->{-title_html} = $title; $ctx->{-upfx} = '../'; - PublicInbox::WwwStream::oneshot($ctx, $code); + html_oneshot($ctx, $code); } sub ext_urls { @@ -197,7 +197,7 @@ sub exact { qq(<a\nhref="$u$href/">$u$html/</a>\n) } @$found), $ext_urls, '</pre>'); - PublicInbox::WwwStream::oneshot($ctx, $code); + html_oneshot($ctx, $code); } 1; |