From c331ccd5006503d3b93808ca9dc466bea33b9569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Wrzeszcz?= Date: Wed, 12 Dec 2012 00:08:01 +0100 Subject: [PATCH] Added XHTML content type to ESI defaults. --- src/Symfony/Component/HttpKernel/HttpCache/Esi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/HttpCache/Esi.php b/src/Symfony/Component/HttpKernel/HttpCache/Esi.php index e1a0e6a271..0ab9ea0a25 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/Esi.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/Esi.php @@ -34,9 +34,9 @@ class Esi * Constructor. * * @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; }