From 0f2c38eff161623fd5e3063e4beba2882f8dca2a Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 10 Aug 2022 09:59:08 +0200 Subject: we pay the cost of curl_getinfo anyway, make it accessible for all requests --- it_url.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/it_url.class b/it_url.class index ea72c9a..817630f 100644 --- a/it_url.class +++ b/it_url.class @@ -317,7 +317,8 @@ function request($p=array()) if ($p['maxlength'] && $got) $got = $content; - EDC('curlinfo', curl_getinfo($curl)); + $this->curlinfo = curl_getinfo($curl); + EDC('curlinfo', $this->curlinfo); if ($got !== false) { @@ -345,7 +346,6 @@ function request($p=array()) { $result = $this->result = false; $this->errstr = trim("(" . curl_errno($curl) . ") " . curl_error($curl)); - $this->curlinfo = curl_getinfo($curl); } if ($p['verbose']) -- cgit v1.2.3