about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtMsg.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-03-21 02:03:47 +0000
committerEric Wong <e@yhbt.net>2020-03-25 01:48:35 +0000
commitd27de5b3df43f41c4e8f3b1cbad79b2436d2a549 (patch)
treeb07af2127702cc50897341ca8e83efa917e06fb9 /lib/PublicInbox/ExtMsg.pm
parent433f6127f648e83b8f12d7b232ff726a34a85beb (diff)
downloadpublic-inbox-d27de5b3df43f41c4e8f3b1cbad79b2436d2a549.tar.gz
No reason to use the ->getline interface for small responses.
Diffstat (limited to 'lib/PublicInbox/ExtMsg.pm')
-rw-r--r--lib/PublicInbox/ExtMsg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index 4d753a7e..a14eddf6 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -159,7 +159,7 @@ sub ext_msg {
         $ctx->{-html_tip} = $s .= '</pre>';
         $ctx->{-title_html} = $title;
         $ctx->{-upfx} = '../';
-        PublicInbox::WwwStream->response($ctx, $code);
+        PublicInbox::WwwStream::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->response($ctx, $code);
+        PublicInbox::WwwStream::oneshot($ctx, $code);
 }
 
 1;