set content type to application/xhtml+xml to find problems earlier

This commit is contained in:
Christian Weiske 2010-06-02 19:02:05 +02:00
parent 69233c462d
commit 78697d4438

View File

@ -109,7 +109,8 @@ $tplVars['userservice'] = $userservice;
if (!defined('UNIT_TEST_MODE')) { if (!defined('UNIT_TEST_MODE')) {
//API files define that, so we need a way to support both of them //API files define that, so we need a way to support both of them
if (!isset($httpContentType)) { if (!isset($httpContentType)) {
$httpContentType = 'text/html'; //$httpContentType = 'text/html';
$httpContentType = 'application/xhtml+xml';
} }
if ($httpContentType !== false) { if ($httpContentType !== false) {
header('Content-Type: ' . $httpContentType . '; charset=utf-8'); header('Content-Type: ' . $httpContentType . '; charset=utf-8');