Merge pull request #56 from glensc/accept-header
authorGaetano Giunta <giunta.gaetano@gmail.com>
Sun, 15 Oct 2017 11:32:45 +0000 (12:32 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Oct 2017 11:32:45 +0000 (12:32 +0100)
fix HTTP/1.1 417 Expectation Failed Bug

src/Client.php

index d31e9f5..8d47208 100644 (file)
@@ -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) {