From 26f51cfc1e09dd40c80d8ad82831622f306e0202 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Tue, 31 Oct 2023 09:17:56 +0100 Subject: still include headers and status in result if maxlength is reached --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3