From e330b2eec13ebda99a7e2981375dee4fe397f14a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 23 May 2016 08:21:08 +0000 Subject: http: avoid uninitialized variable Oops, really gotta start checking logs in tests :x Fixes: bb38f0fcce739 ("http: chunk in the server, not middleware") --- lib/PublicInbox/HTTP.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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"; -- cgit v1.2.3-24-ge0c7