[icinga-checkins] icinga.org: icingaweb2/bugfix/icinga-web-2-doesn't-set-content-type-12161: Response: Only set header Content-Type in method prepare if not already set

git at icinga.org git at icinga.org
Mon Oct 17 16:39:21 CEST 2016


Module: icingaweb2
Branch: bugfix/icinga-web-2-doesn't-set-content-type-12161
Commit: c927c3244261ca36dd341652e1791c069a16f01a
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=c927c3244261ca36dd341652e1791c069a16f01a

Author: Noah Hilverling <noah.hilverling at netways.de>
Date:   Mon Oct 17 16:34:07 2016 +0200

Response: Only set header Content-Type in method prepare if not already set

refs #12161

---

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

diff --git a/library/Icinga/Web/Response.php b/library/Icinga/Web/Response.php
index cdb377e..d96972d 100644
--- a/library/Icinga/Web/Response.php
+++ b/library/Icinga/Web/Response.php
@@ -275,7 +275,7 @@ class Response extends Zend_Controller_Response_Http
             }
         }
 
-        $this->setHeader("Content-Type", $this->getContentType(), true);
+        $this->setHeader('Content-Type', $this->getContentType(), false);
     }
 
     /**



More information about the icinga-checkins mailing list