diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Core/Http/Client.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Core/Http/Client.php b/app/Core/Http/Client.php index d875fe67..cc6c5b20 100644 --- a/app/Core/Http/Client.php +++ b/app/Core/Http/Client.php @@ -282,6 +282,7 @@ class Client extends Base $statusCode = curl_getinfo($curlSession, CURLINFO_RESPONSE_CODE); if ($statusCode >= 400) { + curl_close($curlSession); throw new InvalidStatusException('Request failed with status code '.$statusCode, $statusCode, $body); } } |