From: Eric Wong Date: Mon, 23 May 2016 08:21:08 +0000 (+0000) Subject: http: avoid uninitialized variable X-Git-Tag: v1.0.0~496 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e330b2eec13ebda99a7e2981375dee4fe397f14a;p=public-inbox.git http: avoid uninitialized variable Oops, really gotta start checking logs in tests :x Fixes: bb38f0fcce739 ("http: chunk in the server, not middleware") --- diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 77b178c0..104a2132 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -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";