From: Jaroslav Kysela Date: Thu, 29 Oct 2015 19:00:59 +0000 (+0100) Subject: http_client_add_args - remove the duplicate header line X-Git-Tag: v4.2.1~1737 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e1e39c6c1ee7d64f95cd1ebe5dcb39514d248d4;p=thirdparty%2Ftvheadend.git http_client_add_args - remove the duplicate header line --- diff --git a/src/httpc.c b/src/httpc.c index 4db8fa2c2..c17f3a955 100644 --- a/src/httpc.c +++ b/src/httpc.c @@ -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); + } } }