mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
lighthouse improvements
This commit is contained in:
parent
6e25ad9313
commit
213ed899a9
|
|
@ -77,10 +77,6 @@ final class HttpHeader extends HeaderAbstract
|
||||||
$key = \strtolower($key);
|
$key = \strtolower($key);
|
||||||
$exists = isset($this->header[$key]);
|
$exists = isset($this->header[$key]);
|
||||||
|
|
||||||
if (!$overwrite && $exists) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($exists && self::isSecurityHeader($key)) {
|
if ($exists && self::isSecurityHeader($key)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -326,11 +322,12 @@ final class HttpHeader extends HeaderAbstract
|
||||||
$this->generate($this->status);
|
$this->generate($this->status);
|
||||||
|
|
||||||
foreach ($this->header as $name => $arr) {
|
foreach ($this->header as $name => $arr) {
|
||||||
foreach ($arr as $value) {
|
if (empty($name)) {
|
||||||
\header(empty($name)
|
foreach ($arr as $value) {
|
||||||
? $value
|
\header($value);
|
||||||
: $name . ': ' . $value
|
}
|
||||||
);
|
} else {
|
||||||
|
\header($name . ': ' . \implode(';', $arr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user