X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=remote-curl.c;h=775d6143037aa4573c0202715fe1b1a0f99e2799;hb=fa38cfc2c6ce197960f85798aac18ee78aa83f1f;hp=d0fb0a044a85ec6169c4623c7c2ab2143dbb5784;hpb=7d5c884ead4e95cdccb21e8624b49fd6b95f3827;p=thirdparty%2Fgit.git 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);