about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwStream.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-09-10 08:16:56 +0000
committerEric Wong <e@80x24.org>2022-09-10 19:50:28 +0000
commitd6d1f632bf8c7f34ae014a9cd69fde699bbe183a (patch)
tree6da03d8e5f8bc0fbe2323b1b42cefd78080a22a3 /lib/PublicInbox/WwwStream.pm
parente4baa06a7c01490744bc3fcd0b8a6136fd341323 (diff)
downloadpublic-inbox-d6d1f632bf8c7f34ae014a9cd69fde699bbe183a.tar.gz
There's no reason to be streaming large amounts of HTML for
anything other than a 200 response.
Diffstat (limited to 'lib/PublicInbox/WwwStream.pm')
-rw-r--r--lib/PublicInbox/WwwStream.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm
index 115e0440..1fc213d4 100644
--- a/lib/PublicInbox/WwwStream.pm
+++ b/lib/PublicInbox/WwwStream.pm
@@ -205,9 +205,9 @@ sub async_next ($) {
 }
 
 sub aresponse {
-        my ($ctx, $code, $cb) = @_;
+        my ($ctx, $cb) = @_;
         init($ctx, $cb);
-        $ctx->psgi_response($code, delete $ctx->{-res_hdr});
+        $ctx->psgi_response(200, delete $ctx->{-res_hdr});
 }
 
 sub html_init {