BUGFIX: Removed XHTML XML declaration requirement

This commit is contained in:
g4b0 2013-03-07 11:35:24 +01:00
parent d57caa6477
commit 13b7386a2f

View File

@ -135,8 +135,6 @@ class ContentNegotiator {
public function xhtml(SS_HTTPResponse $response) {
$content = $response->getBody();
// Only serve "pure" XHTML if the XML header is present
if(substr($content,0,5) == '<' . '?xml' ) {
$response->addHeader("Content-Type", "application/xhtml+xml; charset=" . self::$encoding);
$response->addHeader("Vary" , "Accept");
@ -149,10 +147,6 @@ class ContentNegotiator {
$content = preg_replace('#(<img[^>]*[^/>])>#i', '\\1/>', $content);
$response->setBody($content);
} else {
return $this->html($response);
}
}
/*