diff options
Diffstat (limited to 'functions')
-rw-r--r-- | functions/connection.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/functions/connection.php b/functions/connection.php index ba30c5a..4280798 100644 --- a/functions/connection.php +++ b/functions/connection.php @@ -36,11 +36,12 @@ function server_http_headers($host, $port){ "allow_self_signed" => true, "sni_enabled" => true), 'http' => array( - 'method' => 'HEAD' + 'method' => 'GET' ) ) ); $headers = get_headers("https://$host:$port", 1); + if (!empty($headers)) { $headers = array_change_key_case($headers, CASE_LOWER); return $headers; @@ -590,10 +591,4 @@ if ( $read_stream === false ) { } - - - - - - ?> |