[FrameworkBundle] made ESI URL relative as allowed by the spec (no need to generate absolute URLs)

see http://www.w3.org/TR/esi-lang (Section 3.1 "Relative URIs will be resolved relative to the template.")
This commit is contained in:
Fabien Potencier 2011-04-21 18:53:59 +02:00
parent c67dd2bb68
commit 314684df24

View File

@ -169,7 +169,7 @@ class HttpKernel extends BaseHttpKernel
'controller' => $controller,
'path' => $attributes ? http_build_query($attributes) : 'none',
'_format' => $this->container->get('request')->getRequestFormat(),
), true);
));
if ($query) {
$uri = $uri.'?'.http_build_query($query);