summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2022-08-10 09:59:08 +0200
committerNathan Gass2022-08-10 09:59:08 +0200
commit0f2c38eff161623fd5e3063e4beba2882f8dca2a (patch)
tree0f7279b895b5eb3b4d98e866580a895998f8856f
parent3d4c321a443e8933a712598a7a001fe6b7adbf07 (diff)
downloaditools-0f2c38eff161623fd5e3063e4beba2882f8dca2a.tar.gz
itools-0f2c38eff161623fd5e3063e4beba2882f8dca2a.tar.bz2
itools-0f2c38eff161623fd5e3063e4beba2882f8dca2a.zip
we pay the cost of curl_getinfo anyway, make it accessible for all requests
-rw-r--r--it_url.class4
1 files 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'])