Permalink
Browse files

[MonologBridge] Added the user agent check for the ChromePhpHandler

  • Loading branch information...
1 parent f7aa6c0 commit 96da7c8c44963b381ee839f1402fa5e85535ac8b @stof stof committed Feb 20, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php
@@ -42,16 +42,13 @@ public function onKernelResponse(FilterResponseEvent $event)
return;
}
- /* TODO: change this part once ChromePhpHandler has a way to detect the extension
- if (!preg_match('{\bFirePHP/\d+\.\d+\b}', $event->getRequest()->headers->get('User-Agent'))
- && !$event->getRequest()->headers->has('X-FirePHP-Version')) {
+ if (!preg_match('{\bChrome/\d+[\.\d+]*\b}', $event->getRequest()->headers->get('User-Agent'))) {
$this->sendHeaders = false;
$this->headers = array();
return;
}
- */
$this->response = $event->getResponse();
foreach ($this->headers as $header => $content) {

0 comments on commit 96da7c8

Please sign in to comment.