fix http auth with multiple curl handles
[gitweb.git] / http.c
diff --git a/http.c b/http.c
index f3f83d70cd2e13a774d208206af20181dd39d8af..c6dc9b778ed0dd10e710b742b7fe9df147cb2954 100644 (file)
--- a/http.c
+++ b/http.c
@@ -494,6 +494,8 @@ struct active_request_slot *get_active_slot(void)
        curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDS, NULL);
        curl_easy_setopt(slot->curl, CURLOPT_UPLOAD, 0);
        curl_easy_setopt(slot->curl, CURLOPT_HTTPGET, 1);
+       if (http_auth.password)
+               init_curl_http_auth(slot->curl);
 
        return slot;
 }