From f31a481a8b9972115336e7b8d5cac2a479ea159a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 26 Aug 2015 02:37:43 +0000 Subject: mbox: close file handle for single mbox This doesn't seem needed for actual server use, but Plack tests complain about it --- lib/PublicInbox/Mbox.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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; } } -- cgit v1.2.3-24-ge0c7