From: Eric Wong Date: Wed, 26 Aug 2015 02:37:43 +0000 (+0000) Subject: mbox: close file handle for single mbox X-Git-Tag: v1.0.0~979 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f31a481a8b9972115336e7b8d5cac2a479ea159a;p=public-inbox.git mbox: close file handle for single mbox This doesn't seem needed for actual server use, but Plack tests complain about it --- 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; } }