Disable CURLOPT_NOBODY before enabling CURLOPT_PUT and CURLOPT_POST
[gitweb.git] / remote-curl.c
index 4f28c222f2064b27c41bbcfbb425c6a221b46a58..69eaf58dfe2be1a73b2c94ee9e33a678f1fb4f3e 100644 (file)
@@ -356,8 +356,8 @@ static int post_rpc(struct rpc_state *rpc)
        slot = get_active_slot();
        slot->results = &results;
 
-       curl_easy_setopt(slot->curl, CURLOPT_POST, 1);
        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, "");