diff --git a/phpunit.xml b/phpunit.xml index ff6b47d..88143c0 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,22 +1,24 @@ - - - - - - - - - - tests - - - - - src - - - - - + + + + src + + + + + + + + + + + + + + tests + + + diff --git a/src/UriClient.php b/src/UriClient.php index 89d2bce..efd4ec0 100644 --- a/src/UriClient.php +++ b/src/UriClient.php @@ -23,7 +23,7 @@ class UriClient extends TxtClient /** * User-agent */ - const CURL_USER_AGENT = 'RobotsTxtParser-VIPnytt/2.0 (+https://github.com/VIPnytt/RobotsTxtParser/blob/master/README.md)'; + const CURL_USER_AGENT = 'RobotsTxtParser-VIPnytt/2.1 (+https://github.com/VIPnytt/RobotsTxtParser/blob/master/README.md)'; /** * Base uri @@ -123,9 +123,6 @@ private function request($options = []) ) ) ? CURLOPT_CAPATH : CURLOPT_CAINFO => $caPathOrFile ]); - if (PHP_VERSION_ID >= 70700) { - curl_setopt($curl, CURLOPT_SSL_VERIFYSTATUS, true); - } // Apply custom cURL options curl_setopt_array($curl, $options); // Initialize the header parser