From a1c910553f359accc76cd00444b662e836e3c6a2 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 4 Nov 2022 09:42:24 +0100 Subject: Backport from xs. --- xs_curl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xs_curl.h') diff --git a/xs_curl.h b/xs_curl.h index e48bc56..b769e2f 100644 --- a/xs_curl.h +++ b/xs_curl.h @@ -143,6 +143,9 @@ d_char *xs_http_request(char *method, char *url, d_char *headers, list = curl_slist_append(list, h); } + /* disable server support for 100-continue */ + list = curl_slist_append(list, "Expect:"); + curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list); /* do it */ -- cgit