From: Mike Hommey Date: Mon, 10 Dec 2007 21:36:08 GMT Subject: [PATCH 2/5] Remove a CURLOPT_HTTPHEADER (un)setting Message-ID: <1197322571-25023-2-git-send-email-mh@glandium.org> In-Reply-To: <1197322571-25023-1-git-send-email-mh@glandium.org> 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 --- http.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/http.c b/http.c index 2d0b46d..784b93e 100644 --- a/http.c +++ b/http.c @@ -364,7 +364,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); -- 1.5.3.7.1159.gdd4a4