Skip to content

Commit 3d37d78

Browse files
authored
Update PendingRequest.php (#48900)
1 parent e5e67c4 commit 3d37d78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Http/Client/PendingRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,10 @@ protected function makePromise(string $method, string $url, array $options = [])
10081008
});
10091009
})
10101010
->otherwise(function (TransferException $e) {
1011+
if ($e instanceof ConnectException) {
1012+
$this->dispatchConnectionFailedEvent();
1013+
}
1014+
10111015
return $e instanceof RequestException && $e->hasResponse() ? $this->populateResponse($this->newResponse($e->getResponse())) : $e;
10121016
});
10131017
}

0 commit comments

Comments
 (0)