From: Mike Hommey Date: Mon, 10 Dec 2007 21:36:08 +0000 (+0100) Subject: Remove a CURLOPT_HTTPHEADER (un)setting X-Git-Tag: v1.5.4-rc1~58 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=02dc534fc6eb8a08c686b7cb2d979545853889d0;p=git.git Remove a CURLOPT_HTTPHEADER (un)setting Setting CURLOPT_HTTPHEADER doesn't add HTTP headers, but replaces whatever set of headers was configured before, so setting to NULL doesn't have any magic meaning, and is pretty much useless when setting to another list right after. Signed-off-by: Mike Hommey Signed-off-by: Junio C Hamano --- diff --git a/http.c b/http.c index 146f62609..ae57073a3 100644 --- a/http.c +++ b/http.c @@ -370,7 +370,6 @@ struct active_request_slot *get_active_slot(void) slot->finished = NULL; slot->callback_data = NULL; slot->callback_func = NULL; - curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, NULL); curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, pragma_header); curl_easy_setopt(slot->curl, CURLOPT_ERRORBUFFER, curl_errorstr); curl_easy_setopt(slot->curl, CURLOPT_CUSTOMREQUEST, NULL);