]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
http_client_add_args - remove the duplicate header line
authorJaroslav Kysela <perex@perex.cz>
Thu, 29 Oct 2015 19:00:59 +0000 (20:00 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 29 Oct 2015 19:00:59 +0000 (20:00 +0100)
src/httpc.c

index 4db8fa2c20e60092d9f1837f180ae8b93e4a0232..c17f3a955e0dc985d0429d726eb5b9bfedc52867 100644 (file)
@@ -1174,8 +1174,10 @@ http_client_add_args ( http_client_t *hc, http_arg_list_t *h, const char *args )
     v = strstrip(v);
     if (v && *v && *k &&
         strcasecmp(k, "Connection") != 0 &&
-        strcasecmp(k, "Host") != 0)
+        strcasecmp(k, "Host") != 0) {
+      http_arg_get_remove(h, k);
       http_arg_set(h, k, v);
+    }
   }
 }