From ea97693b548ea39c08beae2d781571712ccf5ed7 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sat, 1 Nov 2014 13:22:07 +0100 Subject: [PATCH] http: Always check for "Connection: close" presence --- src/ChangeLog | 5 +++++ src/http.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 853ff1dc..0e0fad64 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-11-01 Giuseppe Scrivano + + * http.c (gethttp): Do not check for "Connection: close" header + only when the Content-Length is specified. + 2014-10-31 Tim Ruehsen * openssl.c: make _get_rfc2253_formatted() static diff --git a/src/http.c b/src/http.c index 844f8004..cded2dee 100644 --- a/src/http.c +++ b/src/http.c @@ -2287,7 +2287,7 @@ read_header: } /* Check for keep-alive related responses. */ - if (!inhibit_keep_alive && contlen != -1) + if (!inhibit_keep_alive) { if (resp_header_copy (resp, "Connection", hdrval, sizeof (hdrval))) {