From e5c736aab4b707eba9288cf5e12ffda937bbc32b Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Tue, 18 Oct 2016 10:13:58 +0200 Subject: [PATCH] Response: Use method getHeader to check if Content-Type is set already refs #12161 --- library/Icinga/Web/Response.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Response.php b/library/Icinga/Web/Response.php index 2a90a97b1..ac2573f8d 100644 --- a/library/Icinga/Web/Response.php +++ b/library/Icinga/Web/Response.php @@ -300,7 +300,9 @@ class Response extends Zend_Controller_Response_Http } } - $this->setHeader('Content-Type', $this->getContentType(), false); + if (!$this->getHeader('Content-Type', true)) { + $this->setHeader('Content-Type', $this->getContentType()); + } } /**