diff --git a/src/Assetic/Filter/GoogleClosure/CompilerApiFilter.php b/src/Assetic/Filter/GoogleClosure/CompilerApiFilter.php index 347805786..fde27b147 100644 --- a/src/Assetic/Filter/GoogleClosure/CompilerApiFilter.php +++ b/src/Assetic/Filter/GoogleClosure/CompilerApiFilter.php @@ -89,10 +89,10 @@ public function filterDump(AssetInterface $asset) } $context = stream_context_create($contextOptions); - $response = file_get_contents('http://closure-compiler.appspot.com/compile', false, $context); + $response = file_get_contents('https://closure-compiler.appspot.com/compile', false, $context); $data = json_decode($response); } elseif (defined('CURLOPT_POST') && !in_array('curl_init', explode(',', ini_get('disable_functions')))) { - $ch = curl_init('http://closure-compiler.appspot.com/compile'); + $ch = curl_init('https://closure-compiler.appspot.com/compile'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/x-www-form-urlencoded')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);