mirror of
https://github.com/friendica/friendica
synced 2024-11-18 05:03:40 +00:00
Fix Page Header usage
This commit is contained in:
parent
6a9fff5100
commit
e4000155f3
1 changed files with 12 additions and 3 deletions
|
@ -381,7 +381,10 @@ class Page implements ArrayAccess
|
|||
foreach ($response->getHeaders() as $key => $header) {
|
||||
if (is_array($header)) {
|
||||
$header_str = implode(',', $header);
|
||||
} else {
|
||||
$header_str = $header;
|
||||
}
|
||||
|
||||
if (empty($key)) {
|
||||
header($header_str);
|
||||
} else {
|
||||
|
@ -456,10 +459,16 @@ class Page implements ArrayAccess
|
|||
}
|
||||
|
||||
foreach ($response->getHeaders() as $key => $header) {
|
||||
if (empty($key)) {
|
||||
header($header);
|
||||
if (is_array($header)) {
|
||||
$header_str = implode(',', $header);
|
||||
} else {
|
||||
header("$key: $header");
|
||||
$header_str = $header;
|
||||
}
|
||||
|
||||
if (empty($key)) {
|
||||
header($header_str);
|
||||
} else {
|
||||
header("$key: $header_str");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue