Skip to content

Commit 95da0d4

Browse files
authored
Merge pull request #1325 from abraham/close
Remove curl_close
2 parents 763f6b4 + 844d968 commit 95da0d4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/CurlHttpClient.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ public function request(
6767
if (curl_errno($curlHandle) > 0) {
6868
$error = curl_error($curlHandle);
6969
$errorNo = curl_errno($curlHandle);
70-
curl_close($curlHandle);
7170
throw new TwitterOAuthException($error, $errorNo);
7271
}
7372

7473
$httpCode = curl_getinfo($curlHandle, CURLINFO_HTTP_CODE);
75-
curl_close($curlHandle);
7674

7775
$parts = explode("\r\n\r\n", $response);
7876
$responseBody = array_pop($parts);

0 commit comments

Comments
 (0)