]> Sergey Matveev's repositories - public-inbox.git/commitdiff
mbox: close file handle for single mbox
authorEric Wong <e@80x24.org>
Wed, 26 Aug 2015 02:37:43 +0000 (02:37 +0000)
committerEric Wong <e@80x24.org>
Wed, 26 Aug 2015 06:52:39 +0000 (06:52 +0000)
This doesn't seem needed for actual server use, but Plack tests
complain about it

lib/PublicInbox/Mbox.pm

index 38ea5d86f8ccbce6eca87147e6956f5398e786c5..19c18ac437449e79a206767395cfb5cd8957df64 100644 (file)
@@ -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;
        }
 }