about summary refs log tree commit homepage
path: root/lib/PublicInbox/Mbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-26 02:37:43 +0000
committerEric Wong <e@80x24.org>2015-08-26 06:52:39 +0000
commitf31a481a8b9972115336e7b8d5cac2a479ea159a (patch)
treeb990ef7fb813fdfff863426b4830cb7a296b0ca2 /lib/PublicInbox/Mbox.pm
parentf85f1781634dc03e093a0790a41bb4ae90ea907b (diff)
downloadpublic-inbox-f31a481a8b9972115336e7b8d5cac2a479ea159a.tar.gz
This doesn't seem needed for actual server use, but Plack tests
complain about it
Diffstat (limited to 'lib/PublicInbox/Mbox.pm')
-rw-r--r--lib/PublicInbox/Mbox.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index 38ea5d86..19c18ac4 100644
--- a/lib/PublicInbox/Mbox.pm
+++ b/lib/PublicInbox/Mbox.pm
@@ -22,6 +22,7 @@ sub emit1 {
                 # single message should be easily renderable in browsers
                 my $fh = $response->([200, ['Content-Type'=>'text/plain']]);
                 emit_msg($fh, $simple);
+                $fh->close;
         }
 }