webhook verify peer

This commit is contained in:
Yuri Kuznetsov
2020-07-16 19:50:53 +03:00
parent e76490880a
commit 9f4f38bb0d
+1 -1
View File
@@ -67,7 +67,7 @@ class Sender
$handler = curl_init($webhook->get('url'));
curl_setopt($handler, \CURLOPT_RETURNTRANSFER, true);
curl_setopt($handler, \CURLOPT_FOLLOWLOCATION, true);
curl_setopt($handler, \CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($handler, \CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($handler, \CURLOPT_HEADER, true);
curl_setopt($handler, \CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($handler, \CURLOPT_CONNECTTIMEOUT, $connectTimeout);