mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
Response: Use method getHeader to check if Content-Type is set already
refs #12161
This commit is contained in:
parent
f95c789353
commit
e5c736aab4
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user