[icinga-checkins] icinga.org: icingaweb2/master: StyleSheet: Modify send method to use setContentType of Response class

git at icinga.org git at icinga.org
Tue Oct 18 11:10:45 CEST 2016


Module: icingaweb2
Branch: master
Commit: 4df9696ed97e5b2cfe0451ff3d8c6a902620b99e
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=4df9696ed97e5b2cfe0451ff3d8c6a902620b99e

Author: Noah Hilverling <noah.hilverling at netways.de>
Date:   Mon Oct 17 08:29:51 2016 +0200

StyleSheet: Modify send method to use setContentType of Response class

refs #12161

---

 library/Icinga/Web/StyleSheet.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Web/StyleSheet.php b/library/Icinga/Web/StyleSheet.php
index 549e11c..e74f3c9 100644
--- a/library/Icinga/Web/StyleSheet.php
+++ b/library/Icinga/Web/StyleSheet.php
@@ -197,7 +197,7 @@ class StyleSheet
         $response
             ->setHeader('Cache-Control', 'public', true)
             ->setHeader('ETag', $etag, true)
-            ->setHeader('Content-Type', 'text/css', true);
+            ->setContentType('text/css');
 
         $cacheFile = 'icinga-' . $etag . ($minified ? '.min' : '') . '.css';
         $cache = FileCache::instance();



More information about the icinga-checkins mailing list