[MonologBridge] Added the user agent check for the ChromePhpHandler
This commit is contained in:
parent
f7aa6c006e
commit
96da7c8c44
@ -42,16 +42,13 @@ class ChromePhpHandler extends BaseChromePhpHandler
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: change this part once ChromePhpHandler has a way to detect the extension
|
if (!preg_match('{\bChrome/\d+[\.\d+]*\b}', $event->getRequest()->headers->get('User-Agent'))) {
|
||||||
if (!preg_match('{\bFirePHP/\d+\.\d+\b}', $event->getRequest()->headers->get('User-Agent'))
|
|
||||||
&& !$event->getRequest()->headers->has('X-FirePHP-Version')) {
|
|
||||||
|
|
||||||
$this->sendHeaders = false;
|
$this->sendHeaders = false;
|
||||||
$this->headers = array();
|
$this->headers = array();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
$this->response = $event->getResponse();
|
$this->response = $event->getResponse();
|
||||||
foreach ($this->headers as $header => $content) {
|
foreach ($this->headers as $header => $content) {
|
||||||
|
Reference in New Issue
Block a user