From e72748fa0daa997a5f29bfc82b9e577fdb863c52 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 27 May 2019 09:19:54 -0100 Subject: [PATCH] allow self-signed certificate Signed-off-by: Maxence Lange --- lib/Cron/Queue.php | 1 + lib/Service/CurlService.php | 1 + 2 files changed, 2 insertions(+) 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 =