diff --git a/eZ/Publish/Core/MVC/Symfony/Templating/RenderContentStrategy.php b/eZ/Publish/Core/MVC/Symfony/Templating/RenderContentStrategy.php index 913a9af53c..3db62f215b 100644 --- a/eZ/Publish/Core/MVC/Symfony/Templating/RenderContentStrategy.php +++ b/eZ/Publish/Core/MVC/Symfony/Templating/RenderContentStrategy.php @@ -37,7 +37,7 @@ public function render(ValueObject $valueObject, RenderOptions $options): string $content = $valueObject; $currentRequest = $this->requestStack->getCurrentRequest(); - $surrogateCapability = $currentRequest->get('Surrogate-Capability'); + $surrogateCapability = $currentRequest->headers->get('Surrogate-Capability'); $request = new Request(); $request->headers->set('siteaccess', $this->siteAccess->name);