diff options
author | Eric Wong <e@80x24.org> | 2022-09-10 08:16:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-10 19:50:28 +0000 |
commit | d6d1f632bf8c7f34ae014a9cd69fde699bbe183a (patch) | |
tree | 6da03d8e5f8bc0fbe2323b1b42cefd78080a22a3 /lib/PublicInbox/WwwStream.pm | |
parent | e4baa06a7c01490744bc3fcd0b8a6136fd341323 (diff) | |
download | public-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.pm | 4 |
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 { |