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.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 {