]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
httpc: fix req conn-close ans conn-keep-alive handling, fixes #3548
authorJaroslav Kysela <perex@perex.cz>
Tue, 2 Feb 2016 14:09:53 +0000 (15:09 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 2 Feb 2016 14:10:07 +0000 (15:10 +0100)
src/httpc.c

index 4bdbeb1d6a5a32000a48f7e50c36c853efd89489..11442935ac2a08d6cda158cc93cd2b62ef89e505 100644 (file)
@@ -997,9 +997,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) {