summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorNathan Gass2023-10-31 09:17:56 +0100
committerNathan Gass2023-10-31 09:17:56 +0100
commit26f51cfc1e09dd40c80d8ad82831622f306e0202 (patch)
treec406ecf2a1751786f83d5f603ec0add5ca958932 /it_url.class
parent91533227118a88798d27c2266a8f60298e71ae1b (diff)
downloaditools-26f51cfc1e09dd40c80d8ad82831622f306e0202.tar.gz
itools-26f51cfc1e09dd40c80d8ad82831622f306e0202.tar.bz2
itools-26f51cfc1e09dd40c80d8ad82831622f306e0202.zip
still include headers and status in result if maxlength is reached
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index e79d894..bf6c512 100644
--- a/it_url.class
+++ b/it_url.class
@@ -326,7 +326,7 @@ function request($p=array())
$this->curlinfo = curl_getinfo($curl);
EDC('curlinfo', $this->curlinfo);
- if ($got !== false)
+ if ($got !== false || curl_errno($curl) == 42)
{
$url->header = array_slice(explode("\r\n\r\n", trim($header)), -1)[0] . "\r\n\r\n";
$url->data = $got;