summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-14 11:59:10 -0700
committerJunio C Hamano <gitster@pobox.com>2011-03-14 11:59:10 -0700
commita35138af75070adb32cf281a56186c9343af36a4 (patch)
treef72276528fe0714e5a299b0749f5aa7b60570433 /remote-curl.c
parentee55703bace45760c3385d00c9056d6f6f644229 (diff)
parent959dfcf42f264e8644d88b355224ff468ebae10d (diff)
downloadgit-a35138af75070adb32cf281a56186c9343af36a4.tar.gz
Merge branch 'sp/maint-smart-http-sans-100-continue'
* sp/maint-smart-http-sans-100-continue: smart-http: Really never use Expect: 100-continue
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 d0fb0a044a..775d614303 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -446,12 +446,12 @@ static int post_rpc(struct rpc_state *rpc)
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.
*/
- headers = curl_slist_append(headers, "Expect:");
headers = curl_slist_append(headers, "Transfer-Encoding: chunked");
rpc->initial_buffer = 1;
curl_easy_setopt(slot->curl, CURLOPT_READFUNCTION, rpc_out);