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 <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Mike Hommey committed
Dec 10, 2007 at 22:36 UTC
02dc534fc6eb8a08c686b7cb2d979545853889d0
1 file changed
-1
http.c
-1
@@ -370,7 +370,6 @@ struct active_request_slot *get_active_slot(void)
370
slot->finished = NULL;
371
slot->callback_data = NULL;
372
slot->callback_func = NULL;
373
- curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, NULL);
373
curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, pragma_header);
374
curl_easy_setopt(slot->curl, CURLOPT_ERRORBUFFER, curl_errorstr);
375
curl_easy_setopt(slot->curl, CURLOPT_CUSTOMREQUEST, NULL);