Project

General

Profile

Actions

Bug #103685

open

Response headers are not handled according to PSR-7 in extbase

Added by David Hedden 7 months ago. Updated 21 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Extbase
Start date:
2024-04-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Headers with the same name are always overridden when outputting a response in extbase.

// TYPO3\CMS\Extbase\Core\Bootstrap
foreach ($response->getHeaders() as $name => $values) {
    foreach ($values as $value) {
        header(sprintf('%s: %s', $name, $value));
    }
}
// https://www.php-fig.org/psr/psr-7/
// Emit headers iteratively:
foreach ($message->getHeaders() as $name => $values) {
    foreach ($values as $value) {
        header(sprintf('%s: %s', $name, $value), false);
    }
}


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #105591: ext:felogin does not delete fe_typo_user Cookie on logoutNewTorben Hansen2024-11-13

Actions
Actions

Also available in: Atom PDF