http: Always check for "Connection: close" presence

This commit is contained in:
Giuseppe Scrivano 2014-11-01 13:22:07 +01:00
parent fb8f81040a
commit ea97693b54
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-11-01 Giuseppe Scrivano <gscrivan@redhat.com>
* http.c (gethttp): Do not check for "Connection: close" header
only when the Content-Length is specified.
2014-10-31 Tim Ruehsen <tim.ruehsen@gmx.de>
* openssl.c: make _get_rfc2253_formatted() static

View File

@ -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)))
{