FEAT: Check if headers weren't sent already
This commit is contained in:
parent
4f498dfc70
commit
7dd7b42c25
|
|
@ -55,6 +55,10 @@ class SecureHeaders
|
|||
*/
|
||||
private function removeUnwantedHeaders()
|
||||
{
|
||||
if (headers_sent()) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($this->unwantedHeaderList as $header) {
|
||||
header_remove($header);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue