mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
4d16656100
commit
bf3cfda209
@ -213,7 +213,7 @@ class Response extends Zend_Controller_Response_Http
|
|||||||
public function json()
|
public function json()
|
||||||
{
|
{
|
||||||
$response = new JsonResponse();
|
$response = new JsonResponse();
|
||||||
$response->setMetaDataFrom($this);
|
$response->copyMetaDataFrom($this);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -302,7 +302,7 @@ class Response extends Zend_Controller_Response_Http
|
|||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
protected function setMetaDataFrom(self $response)
|
protected function copyMetaDataFrom(self $response)
|
||||||
{
|
{
|
||||||
$this->_headers = $response->_headers;
|
$this->_headers = $response->_headers;
|
||||||
$this->_headersRaw = $response->_headersRaw;
|
$this->_headersRaw = $response->_headersRaw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user