Skip to content

Commit

Permalink
Merge pull request #56 from glensc/accept-header
Browse files Browse the repository at this point in the history
fix HTTP/1.1 417 Expectation Failed Bug
  • Loading branch information
gggeek authored Oct 15, 2017
2 parents 42c180b + 4331404 commit 07b9c5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,9 @@ protected function sendPayloadCURL($req, $server, $port, $timeout = 0, $username
$headers[] = $encodingHdr;
}

// Fixes the HTTP/1.1 417 Expectation Failed Bug
$headers[] = 'Expect:';

curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
// timeout is borked
if ($timeout) {
Expand Down

0 comments on commit 07b9c5f

Please sign in to comment.