From df0fa00315858eb92dff0bb1d9669ded0e703eb2 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 1 Nov 2023 17:15:16 +0100 Subject: handle redirects with small bodies --- 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 dcf805c..25f4eee 100644 --- a/it_url.class +++ b/it_url.class @@ -73,7 +73,7 @@ function __construct($url = null) */ static function is_reachable($p = []) { - $result = static::get((is_array($p) ? $p : ['url' => $p]) + ['maxlength' => 1, 'totaltimeout' => 5, 'assoc' => true, 'it_error' => false]); + $result = static::get((is_array($p) ? $p : ['url' => $p]) + ['maxlength' => 1000, 'totaltimeout' => 5, 'assoc' => true, 'it_error' => false]); return $result['status'] >= 200 && $result['status'] < 400; } -- cgit v1.2.3