SAAS-503: PYPO -> Use the REST API to download files

Change download URL to use https
This commit is contained in:
drigato 2014-12-03 14:03:21 -05:00
parent cf9eabbc74
commit a1062e951f
1 changed files with 1 additions and 1 deletions

View File

@ -955,7 +955,7 @@ SQL;
$uri = $file->getAbsoluteFilePath();
$baseUrl = Application_Common_OsPath::getBaseDir();
$downloadURL = "http://".$_SERVER['HTTP_HOST'].$baseUrl."rest/media/$media_id/download";
$downloadURL = "https://".$_SERVER['HTTP_HOST'].$baseUrl."rest/media/$media_id/download?verify=False";
$filesize = $file->getFileSize();
self::createFileScheduleEvent($data, $item, $media_id, $uri, $downloadURL, $filesize);