Added XHTML content type to ESI defaults.

This commit is contained in:
Rafał Wrzeszcz 2012-12-12 00:08:01 +01:00
parent 18c520a5e8
commit c331ccd500

View File

@ -34,9 +34,9 @@ class Esi
* Constructor. * Constructor.
* *
* @param array $contentTypes An array of content-type that should be parsed for ESI information. * @param array $contentTypes An array of content-type that should be parsed for ESI information.
* (default: text/html, text/xml, and application/xml) * (default: text/html, text/xml, application/xhtml+xml, and application/xml)
*/ */
public function __construct(array $contentTypes = array('text/html', 'text/xml', 'application/xml')) public function __construct(array $contentTypes = array('text/html', 'text/xml', 'application/xhtml+xml', 'application/xml'))
{ {
$this->contentTypes = $contentTypes; $this->contentTypes = $contentTypes;
} }