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…
Reference in New Issue