From a33cafc805455adfec292ce65681e73009ce2bf2 Mon Sep 17 00:00:00 2001 From: Slawomir Dolzycki-Uchto Date: Tue, 6 Oct 2020 15:46:12 +0200 Subject: [PATCH] Update RenderContentStrategy.php --- .../Core/MVC/Symfony/Templating/RenderContentStrategy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);