From 807ddc4835ace6d32527d2d020f43a38abe409c3 Mon Sep 17 00:00:00 2001 From: David Flatz Date: Wed, 9 Jul 2025 14:54:59 +0200 Subject: Show first 2kb of response body when debugparameter curlinfo is set --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index d37a6d5..05226a3 100644 --- a/it_url.class +++ b/it_url.class @@ -337,7 +337,7 @@ function request($p=array()) $body = $origbody = $p['maxlength'] && $got ? $content : $got; $this->curlinfo = curl_getinfo($curl); - EDC('curlinfo', $this->curlinfo); + EDC('curlinfo', $this->curlinfo, substr($got, 0, 2048)); if ($body !== false || curl_errno($curl) == 23) { -- cgit v1.2.3