Skip to content

Commit

Permalink
Fix: Curl - CURLE_GOT_NOTHING is a NetworkException
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jul 23, 2019
1 parent 8e31107 commit 8b12f09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public function sendRequest(RequestInterface $request): ResponseInterface
case CURLE_SSL_CONNECT_ERROR:
case CURLOPT_DNS_CACHE_TIMEOUT:
case CURLOPT_TIMEOUT:
case CURLE_GOT_NOTHING:
throw new NetworkException(
$request,
curl_error($this->curlHandler),
Expand Down

0 comments on commit 8b12f09

Please sign in to comment.