diff --git a/remote-curl.c b/remote-curl.c
index 69eaf58dfe2be1a73b2c94ee9e33a678f1fb4f3e..8f169ddca0fd465b332a6044e0a05a628fa7b825 100644 (file)
--- a/remote-curl.c
+++ b/remote-curl.c
rpc->len = avail;
}
- if (max < avail);
+ if (max < avail)
avail = max;
memcpy(ptr, rpc->buf + rpc->pos, avail);
rpc->pos += avail;
strbuf_addf(&buf, "Content-Type: application/x-%s-request", svc);
rpc->hdr_content_type = strbuf_detach(&buf, NULL);
- strbuf_addf(&buf, "Accept: application/x-%s-response", svc);
+ strbuf_addf(&buf, "Accept: application/x-%s-result", svc);
rpc->hdr_accept = strbuf_detach(&buf, NULL);
while (!err) {