merged branch rafalwrzeszcz/feature/esi-xhtml (PR #6274)

This PR was merged into the master branch.

Commits
-------

c331ccd Added XHTML content type to ESI defaults.

Discussion
----------

Added XHTML content type to ESI defaults.

It took me a while to figure out why Symfony reverse proxy does not handly ESI :P.
This commit is contained in:
Fabien Potencier 2012-12-12 10:41:48 +01:00
commit e5ba394506

View File

@ -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;
}