Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http_client_add_args - remove the duplicate header line
  • Loading branch information
perexg committed Oct 29, 2015
1 parent f1d7918 commit 3e1e39c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/httpc.c
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 3e1e39c

Please sign in to comment.