Skip to content

Commit

Permalink
Use constant instead of integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 25, 2018
1 parent 8e795a1 commit 7e90881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Client/Adapter/Curl.php
Expand Up @@ -44,7 +44,7 @@ public function send(Request $request, array $options)
curl_close($ch);

$status = 500;
if ($errorCode === 28) {
if ($errorCode === CURLE_OPERATION_TIMEOUTED) {
$status = 504;
}
throw new HttpException("cURL Error ({$errorCode}) {$error}", $status);
Expand Down

0 comments on commit 7e90881

Please sign in to comment.