[BUGFIX] PSR-7 responses return header using getHeader() 93/56093/6
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 11 Mar 2018 06:02:30 +0000 (07:02 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 13 May 2018 08:36:48 +0000 (10:36 +0200)
commitb3f18c9d2c0a7f03bafc9b7e2847f8a8c54bc397
tree4a3eefdeb680c2e0100ba6702dad765750db45d5
parentf2476e38af0dcbdb122d2f131042286de11bc5da
[BUGFIX] PSR-7 responses return header using getHeader()

The base PSR-7 implementation of the Response object does not
sanitize the headers properly when handing them in as an array,
thus, it is stored wrong in the Response object.

Resolves: #84853
Releases: master, 8.7
Change-Id: I7571f1438bc602bcae9367b82f99946ed22d8308
Reviewed-on: https://review.typo3.org/56093
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Http/Response.php
typo3/sysext/core/Tests/Unit/Http/RedirectResponseTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Http/ResponseTest.php