$ctx->{-html_tip} = $s .= '</pre>';
$ctx->{-title_html} = $title;
$ctx->{-upfx} = '../';
- PublicInbox::WwwStream->response($ctx, $code);
+ PublicInbox::WwwStream::oneshot($ctx, $code);
}
sub ext_urls {
qq(<a\nhref="$u$href/">$u$html/</a>\n)
} @$found),
$ext_urls, '</pre>');
- PublicInbox::WwwStream->response($ctx, $code);
+ PublicInbox::WwwStream::oneshot($ctx, $code);
}
1;
bless {
nr => 0,
- cb => $cb || \&close,
+ cb => $cb,
ctx => $ctx,
base_url => base_url($ctx),
}, $class;
ctx => $ctx,
base_url => base_url($ctx),
}, __PACKAGE__;
- [ $code, [ 'Content-Type', 'text/html; charset=UTF-8' ],
- [ _html_top($self), $$strref, _html_end($self) ] ]
+ [ $code, [ 'Content-Type', 'text/html; charset=UTF-8' ], [
+ _html_top($self), $strref ? $$strref : (), _html_end($self)
+ ] ]
}
1;