Skip to content

Commit

Permalink
Merge branch 'sp/maint-smart-http-sans-100-continue'
Browse files Browse the repository at this point in the history
* sp/maint-smart-http-sans-100-continue:
  smart-http: Really never use Expect: 100-continue
  • Loading branch information
Junio C Hamano committed Mar 14, 2011
2 parents ee55703 + 959dfcf commit a35138a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remote-curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a35138a

Please sign in to comment.