There was an error while loading. Please reload this page.
1 parent f7aa6c0 commit 96da7c8Copy full SHA for 96da7c8
src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php
@@ -42,16 +42,13 @@ public function onKernelResponse(FilterResponseEvent $event)
42
return;
43
}
44
45
- /* TODO: change this part once ChromePhpHandler has a way to detect the extension
46
- if (!preg_match('{\bFirePHP/\d+\.\d+\b}', $event->getRequest()->headers->get('User-Agent'))
47
- && !$event->getRequest()->headers->has('X-FirePHP-Version')) {
+ if (!preg_match('{\bChrome/\d+[\.\d+]*\b}', $event->getRequest()->headers->get('User-Agent'))) {
48
49
$this->sendHeaders = false;
50
$this->headers = array();
51
52
53
54
- */
55
56
$this->response = $event->getResponse();
57
foreach ($this->headers as $header => $content) {
0 commit comments