Skip to content
Snippets Groups Projects
Commit f95d141d authored by Σταύρος Παπαδάκης's avatar Σταύρος Παπαδάκης
Browse files

Add CURLOPT_SSL_VERIFYHOST

parent 3ae2cbbc
No related branches found
No related tags found
No related merge requests found
......@@ -84,8 +84,9 @@ class Client
{
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_USERAGENT, "OSTEAM barebone php client");
curl_setopt($ch, CURLOPT_USERAGENT, "OSTEAM SLIM php client");
if (isset($this->_settings['NO_SAFE_CURL']) && $this->_settings['NO_SAFE_CURL'] === true) {
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment