Merge branch 'jk/maint-http-init-not-in-result-handler'
authorJeff King <peff@peff.net>
Mon, 29 Oct 2012 08:13:09 +0000 (04:13 -0400)
committerJeff King <peff@peff.net>
Mon, 29 Oct 2012 08:13:09 +0000 (04:13 -0400)
Further clean-up to the http codepath that picks up results after
cURL library is done with one request slot.

* jk/maint-http-init-not-in-result-handler:
  http: do not set up curl auth after a 401
  remote-curl: do not call run_slot repeatedly

1  2 
http.c
remote-curl.c

diff --cc http.c
Simple merge
diff --cc remote-curl.c
index 42716c59cfe419571d98a7f3b3674e94e2fe3618,aefafd33de6ecac03540c99e5e2b6c7eb3a5fcbc..278fecdd9bd00bf0df0a3d1f35777546794bc92f
@@@ -436,12 -454,8 +441,8 @@@ retry
        curl_easy_setopt(slot->curl, CURLOPT_NOBODY, 0);
        curl_easy_setopt(slot->curl, CURLOPT_POST, 1);
        curl_easy_setopt(slot->curl, CURLOPT_URL, rpc->service_url);
 -      curl_easy_setopt(slot->curl, CURLOPT_ENCODING, "");
 +      curl_easy_setopt(slot->curl, CURLOPT_ENCODING, "gzip");
  
-       headers = curl_slist_append(headers, rpc->hdr_content_type);
-       headers = curl_slist_append(headers, rpc->hdr_accept);
-       headers = curl_slist_append(headers, "Expect:");
        if (large_request) {
                /* The request body is large and the size cannot be predicted.
                 * We must use chunked encoding to send it.