diff options
author | Nathan Gass | 2023-10-31 09:17:56 +0100 |
---|---|---|
committer | Nathan Gass | 2023-10-31 09:17:56 +0100 |
commit | 26f51cfc1e09dd40c80d8ad82831622f306e0202 (patch) | |
tree | c406ecf2a1751786f83d5f603ec0add5ca958932 /it_url.class | |
parent | 91533227118a88798d27c2266a8f60298e71ae1b (diff) | |
download | itools-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.class | 2 |
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; |