about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-20 00:57:12 +0000
committerEric Wong <e@80x24.org>2016-06-20 00:57:34 +0000
commitecad69406fffd47b34ec28bba0b1c9d7fb333c61 (patch)
tree364b660defcc7b1bbc1f83ba2faaeee0fff8aca5 /lib/PublicInbox/Feed.pm
parent4b9ab5255a2ce9e0f75a80afc731a96b760e9816 (diff)
downloadpublic-inbox-ecad69406fffd47b34ec28bba0b1c9d7fb333c61.tar.gz
We overuse streaming, here.  Allow Content-Length to be
calculated in this case.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 045e495f..d88421b0 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -79,9 +79,8 @@ sub emit_atom {
 
 sub _no_thread {
         my ($cb) = @_;
-        my $fh = $cb->([404, ['Content-Type' => 'text/plain']]);
-        $fh->write("No feed found for thread\n");
-        $fh->close;
+        $cb->([404, ['Content-Type', 'text/plain'],
+                ["No feed found for thread\n"]]);
 }
 
 sub end_feed {