diff --git a/profiler.rst b/profiler.rst index e8b587eb9c1..9ea77a2485d 100644 --- a/profiler.rst +++ b/profiler.rst @@ -213,10 +213,10 @@ pages from a server. By default, the debug toolbar displays the information of the initial page load and doesn't refresh after each AJAX request. However, you can set the -``Symfony-Debug-Toolbar-Replace`` header to a value of ``1`` in the response to +``Symfony-Debug-Toolbar-Replace`` header to a value of ``'1'`` in the response to the AJAX request to force the refresh of the toolbar:: - $response->headers->set('Symfony-Debug-Toolbar-Replace', 1); + $response->headers->set('Symfony-Debug-Toolbar-Replace', '1'); Ideally this header should only be set during development and not for production. To do that, create an :doc:`event subscriber ` @@ -251,7 +251,7 @@ event:: } $response = $event->getResponse(); - $response->headers->set('Symfony-Debug-Toolbar-Replace', 1); + $response->headers->set('Symfony-Debug-Toolbar-Replace', '1'); } }