From 0a0cc4857bcca2b7eece97e4efc7cd5d6544a3cc Mon Sep 17 00:00:00 2001 From: Pascal Helfenstein Date: Thu, 5 Dec 2013 14:08:48 +0100 Subject: [PATCH] FIX issue when no ip's are set When no ip's are set on the rule a warning is outputted and no headers are added to the request. --- DependencyInjection/LiipCacheControlExtension.php | 1 + 1 file changed, 1 insertion(+) diff --git a/DependencyInjection/LiipCacheControlExtension.php b/DependencyInjection/LiipCacheControlExtension.php index 9684d72..7d75895 100644 --- a/DependencyInjection/LiipCacheControlExtension.php +++ b/DependencyInjection/LiipCacheControlExtension.php @@ -34,6 +34,7 @@ public function load(array $configs, ContainerBuilder $container) foreach ($config['rules'] as $cache) { // domain is depreciated and will be removed in future $host = is_null($cache['host']) && $cache['domain'] ? $cache['domain'] : $cache['host']; + $cache['ips'] = (empty($cache['ips'])) ? null : $cache['ips']; $matcher = $this->createRequestMatcher( $container,