[MonologBridge] Added the user agent check for the ChromePhpHandler

This commit is contained in:
Christophe Coevoet 2012-02-20 02:34:53 +01:00
parent f7aa6c006e
commit 96da7c8c44
1 changed files with 1 additions and 4 deletions

View File

@ -42,16 +42,13 @@ class ChromePhpHandler extends BaseChromePhpHandler
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) {