From 433140493eb4f5c832ae4acc0d3ba844c32dd0d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 3 Oct 2017 11:23:53 +0300 Subject: [PATCH] fix HTTP/1.1 417 Expectation Failed Bug this commonly happens when lighttpd is the backend server --- src/Client.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Client.php b/src/Client.php index d31e9f5..8d47208 100644 --- a/src/Client.php +++ b/src/Client.php @@ -873,6 +873,9 @@ class Client $headers[] = $encodingHdr; } + // Fixes the HTTP/1.1 417 Expectation Failed Bug + $headers[] = 'Expect:'; + curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); // timeout is borked if ($timeout) { -- 2.43.0