summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index bf6c512..dcf805c 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]) + ['method' => 'HEAD', 'totaltimeout' => 5, 'assoc' => true, 'it_error' => false]);
+ $result = static::get((is_array($p) ? $p : ['url' => $p]) + ['maxlength' => 1, 'totaltimeout' => 5, 'assoc' => true, 'it_error' => false]);
return $result['status'] >= 200 && $result['status'] < 400;
}