Skip to content

Commit

Permalink
Final CloudConvert Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaiahJTurner committed Jun 17, 2014
1 parent e8fa63f commit 6fc03f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/CloudConvert/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ public function download() {
throw new Exception("No download URL found! (Conversion not finished or failed)");
if (strpos($this -> data -> output -> url, 'http') === false)
$this -> data -> output -> url = "https:" . $this -> data -> output -> url;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $this -> data -> output -> url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
if ($result) {
Expand Down

0 comments on commit 6fc03f8

Please sign in to comment.