Response: Use method getHeader to check if Content-Type is set already

refs #12161
This commit is contained in:
Noah Hilverling 2016-10-18 10:13:58 +02:00
parent f95c789353
commit e5c736aab4
1 changed files with 3 additions and 1 deletions

View File

@ -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());
}
} }
/** /**