diff --git a/classes/rest/api.php b/classes/rest/api.php index 29eb4e3..427f144 100644 --- a/classes/rest/api.php +++ b/classes/rest/api.php @@ -206,11 +206,11 @@ protected function test_service_reachable($serviceuri) { $this->logger->info('Testing service availability: '.$serviceuri); $options = [ - CURLOPT_TIMEOUT => 15, - CURLOPT_CONNECTTIMEOUT => 15, - CURLOPT_RETURNTRANSFER => true, - CURLOPT_SSL_VERIFYHOST => 0, - CURLOPT_SSL_VERIFYPEER => 0, + 'CURLOPT_TIMEOUT' => 15, + 'CURLOPT_CONNECTTIMEOUT' => 15, + 'CURLOPT_RETURNTRANSFER' => true, + 'CURLOPT_SSL_VERIFYHOST' => 0, + 'CURLOPT_SSL_VERIFYPEER' => 0, ]; $curl = new \curl(); $curl->setopt($options);