From: Jaroslav Kysela Date: Tue, 2 Feb 2016 14:09:53 +0000 (+0100) Subject: httpc: fix req conn-close ans conn-keep-alive handling, fixes #3548 X-Git-Tag: v4.2.1~1088 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fabe4f8b96193d42a0b83d2cc6a00e5a69e5cbfa;p=thirdparty%2Ftvheadend.git httpc: fix req conn-close ans conn-keep-alive handling, fixes #3548 --- diff --git a/src/httpc.c b/src/httpc.c index 2a6ffbe82..f736aac0f 100644 --- a/src/httpc.c +++ b/src/httpc.c @@ -1026,9 +1026,7 @@ header: if (p && ver != RTSP_VERSION_1_0) { if (strcasecmp(p, "close") == 0) hc->hc_keepalive = 0; - else if (hc->hc_keepalive && strcasecmp(p, "keep-alive")) - return http_client_flush(hc, -EINVAL); - else if (!hc->hc_keepalive && strcasecmp(p, "close")) + else if (strcasecmp(p, "keep-alive")) /* no change for keep-alive */ return http_client_flush(hc, -EINVAL); } if (ver == RTSP_VERSION_1_0) {