Issue Bug Closed

#68506Extbase must use response-object to set response-headers/statuscode

Stefan Neufeind 07/24/15, 11:04 updated 10/19/17, 21:32

Description

With #67558 the core got a request/response-model according to PSR-7. This however seems to lead to problems with Extbase, since the response-handling of Extbase isn’t yet adapted.

Extbase senders headers to the browser directly instead of returning those through the response-object we have now. This happens in typo3/sysext/extbase/Classes/Mvc/Web/Response.php, sendHeaders(). When Extbase wants to set a custom statusCode, it sends a header directly. But when finishing the request the response-object overwrites that status to “200 OK” again.

Headers shouldn’t be sent by Extbase anyway but instead be properly passed through to the response-object.

Reviews 3