mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
Response: Set header Content-Type for every response by default
refs #12161
This commit is contained in:
parent
7cf6b860b5
commit
af5c578adf
@ -275,6 +275,8 @@ class Response extends Zend_Controller_Response_Http
|
|||||||
$this->setRedirect($redirectUrl->getAbsoluteUrl());
|
$this->setRedirect($redirectUrl->getAbsoluteUrl());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->setHeader("Content-Type", $this->getContentType(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -191,7 +191,7 @@ class JsonResponse extends Response
|
|||||||
*/
|
*/
|
||||||
public function sendHeaders()
|
public function sendHeaders()
|
||||||
{
|
{
|
||||||
$this->setHeader('Content-Type', 'application/json', true);
|
$this->setContentType('application/json');
|
||||||
parent::sendHeaders();
|
parent::sendHeaders();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user