[BUGFIX] Some unit tests fail with "Cannot modify header information"
authorXavier Perseguers <typo3@perseguers.ch>
Mon, 11 Jul 2011 08:29:08 +0000 (10:29 +0200)
committerXavier Perseguers <xavier@typo3.org>
Mon, 24 Oct 2011 19:04:19 +0000 (21:04 +0200)
commit29e70b5c3bba48716f83e5ba6205cb57124cc56e
treef47ee0091669d856b4c9375268ec1b0725089e11
parent5e37e10267bb71984035fec1fc0c43b1c0f167f2
[BUGFIX] Some unit tests fail with "Cannot modify header information"

Method template::endPage() should only send Content-Encoding header
if no headers have been sent to prevent fatal errors.

Change-Id: I57b84ac777a3e5dd7be601a670da7601116fd035
Fixes: #28083
Reviewed-on: http://review.typo3.org/3237
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
tests/t3lib/class.t3lib_beuserauthTest.php
typo3/template.php