diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-03-14 21:59:10 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-14 21:59:10 +0300 |
commit | a35138af75070adb32cf281a56186c9343af36a4 (patch) | |
tree | f72276528fe0714e5a299b0749f5aa7b60570433 | |
parent | ee55703bace45760c3385d00c9056d6f6f644229 (diff) | |
parent | 959dfcf42f264e8644d88b355224ff468ebae10d (diff) |
Merge branch 'sp/maint-smart-http-sans-100-continue'
* sp/maint-smart-http-sans-100-continue:
smart-http: Really never use Expect: 100-continue
-rw-r--r-- | remote-curl.c | 2 |
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); |