summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-01-12 17:54:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-12 21:09:44 (GMT)
commit8efa5f629efb9a8af48619ee90dee02343e0f19d (patch)
tree4703d591026c949487f232c13a28a473aa1b3a05 /remote-curl.c
parentfbb9971aca1fef66e622d64418121f6077f05c57 (diff)
downloadgit-8efa5f629efb9a8af48619ee90dee02343e0f19d.zip
git-8efa5f629efb9a8af48619ee90dee02343e0f19d.tar.gz
git-8efa5f629efb9a8af48619ee90dee02343e0f19d.tar.bz2
remote-curl: Fix Accept header for smart HTTP connections
We actually expect to see an application/x-git-upload-pack-result but we lied and said we Accept *-response. This was a typo on my part when I was writing the code. Fortunately the wrong Accept header had no real impact, as the deployed git-http-backend servers were not testing the Accept header before they returned their content. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote-curl.c b/remote-curl.c
index a331bae..8f169dd 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -480,7 +480,7 @@ static int rpc_service(struct rpc_state *rpc, struct discovery *heads)
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) {