From 12f461e3cb0e292471d2e70a0d6afa3df877be13 Mon Sep 17 00:00:00 2001 From: Guilherme Santos Date: Fri, 3 Nov 2017 00:06:24 +0100 Subject: [PATCH] Https is required otherwise return 405 --- src/Assetic/Filter/GoogleClosure/CompilerApiFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);