summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-05-27 09:19:54 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-27 09:19:54 -0100
commite72748fa0daa997a5f29bfc82b9e577fdb863c52 (patch)
tree6d4a67a8000265d0e36074dc67d405b48589a145
parent3b0ece3855a3c15c3d76ad662585842f5e5852cd (diff)
allow self-signed certificate
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--lib/Cron/Queue.php1
-rw-r--r--lib/Service/CurlService.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/Cron/Queue.php b/lib/Cron/Queue.php
index de755dea..ce724b92 100644
--- a/lib/Cron/Queue.php
+++ b/lib/Cron/Queue.php
@@ -107,6 +107,7 @@ class Queue extends TimedJob {
private function manageStreamQueue() {
+ $total = 0;
$items = $this->streamQueueService->getRequestStandby($total);
foreach ($items as $item) {
diff --git a/lib/Service/CurlService.php b/lib/Service/CurlService.php
index ebf291ad..c554f666 100644
--- a/lib/Service/CurlService.php
+++ b/lib/Service/CurlService.php
@@ -296,6 +296,7 @@ class CurlService {
curl_setopt($curl, CURLOPT_BINARYTRANSFER, $request->isBinary());
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
$this->maxDownloadSize =