summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-14 18:59:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-14 18:59:10 (GMT)
commita35138af75070adb32cf281a56186c9343af36a4 (patch)
treef72276528fe0714e5a299b0749f5aa7b60570433
parentee55703bace45760c3385d00c9056d6f6f644229 (diff)
parent959dfcf42f264e8644d88b355224ff468ebae10d (diff)
downloadgit-a35138af75070adb32cf281a56186c9343af36a4.zip
git-a35138af75070adb32cf281a56186c9343af36a4.tar.gz
git-a35138af75070adb32cf281a56186c9343af36a4.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote-curl.c b/remote-curl.c
index d0fb0a0..775d614 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);