Skip to content

Commit 0330a08

Browse files
committed
Merge branch '4.4'
* 4.4: Update profiler.rst
2 parents 7a26181 + e1904b3 commit 0330a08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

profiler.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ event::
206206
if (!$this->getKernel()->isDebug()) {
207207
return;
208208
}
209+
210+
$request = $event->getRequest();
211+
if (!$request->isXmlHttpRequest()) {
212+
return;
213+
}
209214

210215
$response = $event->getResponse();
211216
$response->headers->set('Symfony-Debug-Toolbar-Replace', 1);

0 commit comments

Comments
 (0)