Skip to content

Commit

Permalink
Remove a CURLOPT_HTTPHEADER (un)setting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Hommey authored and Junio C Hamano committed Dec 15, 2007
1 parent c20f290 commit 02dc534
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 02dc534

Please sign in to comment.