fix HTTP/1.1 417 Expectation Failed Bug
[plcapi.git] / 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) {