]> Sergey Matveev's repositories - public-inbox.git/commitdiff
http: avoid uninitialized variable
authorEric Wong <e@80x24.org>
Mon, 23 May 2016 08:21:08 +0000 (08:21 +0000)
committerEric Wong <e@80x24.org>
Mon, 23 May 2016 08:21:54 +0000 (08:21 +0000)
Oops, really gotta start checking logs in tests :x

Fixes: bb38f0fcce739 ("http: chunk in the server, not middleware")
lib/PublicInbox/HTTP.pm

index 77b178c07e6fea56cfe47c9b95a7358499f91088..104a2132ba6108b92b9a5764d46a2b820234a7ee 100644 (file)
@@ -190,6 +190,7 @@ sub response_header_write {
                $alive = 1;
                $h .= "Connection: keep-alive\r\n";
        } else {
+               $alive = 0;
                $h .= "Connection: close\r\n";
        }
        $h .= 'Date: ' . http_date() . "\r\n\r\n";