From fabe4f8b96193d42a0b83d2cc6a00e5a69e5cbfa Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 2 Feb 2016 15:09:53 +0100 Subject: [PATCH] httpc: fix req conn-close ans conn-keep-alive handling, fixes #3548 --- src/httpc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) { -- 2.47.3