about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index c16c417a..2f141c44 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -48,7 +48,7 @@ sub new_html {
         }
         $ctx->{-html_tip} = '<pre>';
         $ctx->{-upfx} = '';
-        my $res = PublicInbox::WwwStream->new($ctx, sub {
+        PublicInbox::WwwStream->response($ctx, 200, sub {
                 while (my $path = shift @paths) {
                         my $m = do_cat_mail($ctx->{-inbox}, $path) or next;
                         my $more = scalar @paths;
@@ -58,7 +58,6 @@ sub new_html {
                 }
                 undef;
         });
-        [ 200, ['Content-Type', 'text/html; charset=UTF-8'], $res ]
 }
 
 # private subs