diff options
author | Eric Wong <e@80x24.org> | 2022-09-10 08:16:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-10 19:50:29 +0000 |
commit | 0ff8c4f7e0815a0aa2e9935dd07ae446ce83c906 (patch) | |
tree | f78d95863027d2eab6b6cf374dd24f80d14002a7 /lib/PublicInbox/View.pm | |
parent | 10839bf81e72f7699ba818db35237028731cf1fd (diff) | |
download | public-inbox-0ff8c4f7e0815a0aa2e9935dd07ae446ce83c906.tar.gz |
viewvcs: use shorter and simpler ctx->html_done
We only return 200s for any response large enough to warrant ->html_done, so we can just assume it. ViewVCS can also take advantage of it with some tweaking to avoid an extra method dispatch.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 1cbc62be..c6fd05cc 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -61,7 +61,7 @@ sub no_over_html ($) { ${$ctx->{obuf}} .= '</pre><hr>'; } html_footer($ctx, $eml); - $ctx->html_done(200); + $ctx->html_done; } # public functions: (unstable) |