Skip to content

Commit 9006dbf

Browse files
committed
Update Curl.php
1 parent 1e10006 commit 9006dbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Curl/Curl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ public function exec($ch = null)
347347
$this->curlErrorMessage = curl_error($this->curl);
348348
$this->curlError = !($this->curlErrorCode === 0);
349349
$this->httpStatusCode = curl_getinfo($this->curl, CURLINFO_HTTP_CODE);
350+
$this->totalTime = curl_getinfo($this->curl, CURLINFO_TOTAL_TIME);
350351
$this->httpError = in_array(floor($this->httpStatusCode / 100), array(4, 5));
351352
$this->error = $this->curlError || $this->httpError;
352353
$this->errorCode = $this->error ? ($this->curlError ? $this->curlErrorCode : $this->httpStatusCode) : 0;

0 commit comments

Comments
 (0)