Permalink
Browse files

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.
  • Loading branch information...
2 parents 18c520a + c331ccd commit e5ba39450693fc89c7a6c938ff91c51e47539908 @fabpot fabpot committed Dec 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit e5ba394

Please sign in to comment.