Remove a CURLOPT_HTTPHEADER (un)setting
[gitweb.git] / http.c
diff --git a/http.c b/http.c
index 146f62609dbf75cf8b6d873f040e1386d73b57d1..ae57073a362ef7bc373855a132b9c25b3e60c154 100644 (file)
--- 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);