diff options
author | Nathan Gass | 2023-11-01 17:15:16 +0100 |
---|---|---|
committer | Nathan Gass | 2023-11-01 17:15:16 +0100 |
commit | df0fa00315858eb92dff0bb1d9669ded0e703eb2 (patch) | |
tree | a9407813adba2c23549898953d075f826a67d9c9 | |
parent | 51cfb1a01c558f4db73af9cc27196cdbe237ed4f (diff) | |
download | itools-df0fa00315858eb92dff0bb1d9669ded0e703eb2.tar.gz itools-df0fa00315858eb92dff0bb1d9669ded0e703eb2.tar.bz2 itools-df0fa00315858eb92dff0bb1d9669ded0e703eb2.zip |
handle redirects with small bodies
-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 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; } |