Skip to content

Commit a35138a

Browse files
committed
Merge branch 'sp/maint-smart-http-sans-100-continue'
* sp/maint-smart-http-sans-100-continue: smart-http: Really never use Expect: 100-continue
2 parents ee55703 + 959dfcf commit a35138a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remote-curl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,12 @@ static int post_rpc(struct rpc_state *rpc)
446446

447447
headers = curl_slist_append(headers, rpc->hdr_content_type);
448448
headers = curl_slist_append(headers, rpc->hdr_accept);
449+
headers = curl_slist_append(headers, "Expect:");
449450

450451
if (large_request) {
451452
/* The request body is large and the size cannot be predicted.
452453
* We must use chunked encoding to send it.
453454
*/
454-
headers = curl_slist_append(headers, "Expect:");
455455
headers = curl_slist_append(headers, "Transfer-Encoding: chunked");
456456
rpc->initial_buffer = 1;
457457
curl_easy_setopt(slot->curl, CURLOPT_READFUNCTION, rpc_out);

0 commit comments

Comments
 (0)