commit 701d03e05444a1ad9bba110c03aaf11278354790
parent 324f6db4891803a2007b12365e7b9e245638021c
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Tue, 18 Sep 2018 18:26:38 +0200
force Expect: 100-continue header.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c
@@ -1524,6 +1524,12 @@ create_response (void *cls,
MHD_HEADER_KIND,
&con_val_iter,
hr);
+
+ if (0 == strcasecmp (meth,
+ MHD_HTTP_METHOD_POST))
+ hr->headers = curl_slist_append (hr->headers,
+ "Expect: 100-continue");
+
curl_easy_setopt (hr->curl,
CURLOPT_HTTPHEADER,
hr->headers);