X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=remote-curl.c;h=a331bae6c8e95042dc2d136fdc1ef6b3d4463c53;hb=762c710b3673009f3ee7b2f4f9321b68d52fca72;hp=4f28c222f2064b27c41bbcfbb425c6a221b46a58;hpb=c50230f75109677d7adf0bd94f99d17f35a519a6;p=git.git diff --git a/remote-curl.c b/remote-curl.c index 4f28c222f..a331bae6c 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -307,7 +307,7 @@ static size_t rpc_out(void *ptr, size_t eltsize, rpc->len = avail; } - if (max < avail); + if (max < avail) avail = max; memcpy(ptr, rpc->buf + rpc->pos, avail); rpc->pos += avail; @@ -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, "");