[TYPO3-mvc] FYI #7914: Headers only sent if Status Code === 303

Jochen Rau jochen.rau at typoplanet.de
Tue Jun 15 12:12:05 CEST 2010


Hi.

BT Reference: http://forge.typo3.org/issues/show/8139

Committed in Revision: 2345

Description:
$response->setHeader() and throwStatus() only work if using status code 303.

Solution:
Remove lines 146-149 in Classes/Dispatcher.php
if (substr($response->getStatus(), 0, 3) === '303') {
	$response->sendHeaders();
	exit;
}
It's checked inside the Response object if there are any headers and/or a status code set.

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list