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:56 +0000
committerEric Wong <e@80x24.org>2022-09-10 19:50:28 +0000
commitd6d1f632bf8c7f34ae014a9cd69fde699bbe183a (patch)
tree6da03d8e5f8bc0fbe2323b1b42cefd78080a22a3 /lib/PublicInbox/View.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/View.pm')
-rw-r--r--lib/PublicInbox/View.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 033af283..1cbc62be 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -80,7 +80,7 @@ sub msg_page {
         # allow user to easily browse the range around this message if
         # they have ->over
         $ctx->{-t_max} = $smsg->{ts};
-        PublicInbox::WwwStream::aresponse($ctx, 200, \&msg_page_i);
+        PublicInbox::WwwStream::aresponse($ctx, \&msg_page_i);
 }
 
 # /$INBOX/$MESSAGE_ID/#R
@@ -432,7 +432,7 @@ sub stream_thread_i { # PublicInbox::WwwStream::getline callback
 sub stream_thread ($$) {
         my ($rootset, $ctx) = @_;
         @{$ctx->{-queue}} = map { (0, $_) } @$rootset;
-        PublicInbox::WwwStream::aresponse($ctx, 200, \&stream_thread_i);
+        PublicInbox::WwwStream::aresponse($ctx, \&stream_thread_i);
 }
 
 # /$INBOX/$MSGID/t/ and /$INBOX/$MSGID/T/
@@ -483,7 +483,7 @@ EOF
         # flat display: lazy load the full message from smsg
         $ctx->{msgs} = $msgs;
         $ctx->{-html_tip} = '<pre>';
-        PublicInbox::WwwStream::aresponse($ctx, 200, \&thread_html_i);
+        PublicInbox::WwwStream::aresponse($ctx, \&thread_html_i);
 }
 
 sub thread_html_i { # PublicInbox::WwwStream::getline callback