Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nixonsam committed Oct 13, 2020
1 parent 59621ab commit 87995be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plivo/HttpClients/PlivoGuzzleHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Plivo\Http\PlivoResponse;

use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Exception\TransferException;


/**
Expand Down Expand Up @@ -131,7 +131,7 @@ public function send_request($url, $method, $body, $headers, $timeOut, $request)
}
try {
$rawResponse = $this->guzzleClient->request($method, $url, $options);
} catch (RequestException $e) {
} catch (TransferException $e) {
throw new PlivoRequestException($e->getMessage());
}
$rawHeaders = $rawResponse->getHeaders();
Expand Down

0 comments on commit 87995be

Please sign in to comment.