diff --git a/Readme.md b/Readme.md index 7437b31..25e8cf8 100644 --- a/Readme.md +++ b/Readme.md @@ -106,6 +106,10 @@ Add a file called *proxy.php* to the config directory. Within the file, use [`st ## Changelog +### 2.0.1 + +- Shorter timeout when checking URL validity + ### 2.0.0 - Simplified proxy configuration diff --git a/api/index.php b/api/index.php index b102598..f806b26 100644 --- a/api/index.php +++ b/api/index.php @@ -1,6 +1,6 @@ array('timeout' => 2) + )); + file_get_contents( $item_url ); + $headerStatus = checkHeaderStatus($http_response_header, $strict); + $schema[$i]['_requestHeader'] = $http_response_header; + if ( !is_null($http_response_header) && ($headerStatus === false) ) { + $schema[$i]['ok'] = false; + } + } catch (Exception $e) { + } } } diff --git a/index.html b/index.html index 224fad5..0b648fa 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@

{{group}}

- +