Skip to content

Commit 7511d46

Browse files
committed
💄
1 parent 14029a5 commit 7511d46

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/CurlClient.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ public function sendRequest(RequestInterface $request):ResponseInterface{
7272
$handle = new CurlHandle($request, $this->responseFactory->createResponse(), $this->options);
7373
$handle->init();
7474

75-
curl_exec($handle->ch);
75+
curl_exec($handle->curl);
7676

77-
$errno = curl_errno($handle->ch);
77+
$errno = curl_errno($handle->curl);
7878

7979
if($errno !== CURLE_OK){
80-
$error = curl_error($handle->ch);
80+
$error = curl_error($handle->curl);
8181

8282
$network_errors = [
8383
CURLE_COULDNT_RESOLVE_PROXY,
@@ -99,7 +99,6 @@ public function sendRequest(RequestInterface $request):ResponseInterface{
9999
$handle->response->getBody()->rewind();
100100

101101
return $handle->response;
102-
103102
}
104103

105104
/**

0 commit comments

Comments
 (0)