about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-09-10 08:16:58 +0000
committerEric Wong <e@80x24.org>2022-09-10 19:50:29 +0000
commit0ff8c4f7e0815a0aa2e9935dd07ae446ce83c906 (patch)
treef78d95863027d2eab6b6cf374dd24f80d14002a7 /lib/PublicInbox/View.pm
parent10839bf81e72f7699ba818db35237028731cf1fd (diff)
downloadpublic-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.pm2
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)