[MonologBridge] Improve FirePHPHandler
This commit is contained in:
parent
efc4fb3908
commit
1d93b5e26a
@ -38,9 +38,10 @@ class FirePHPHandler extends BaseFirePHPHandler
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!preg_match('{\bFirePHP/\d+\.\d+\b}', $event->getRequest()->headers->get('User-Agent'))
|
$request = $event->getRequest();
|
||||||
&& !$event->getRequest()->headers->has('X-FirePHP-Version')) {
|
if (!preg_match('{\bFirePHP/\d+\.\d+\b}', $request->headers->get('User-Agent'))
|
||||||
$this->sendHeaders = false;
|
&& !$request->headers->has('X-FirePHP-Version')) {
|
||||||
|
self::$sendHeaders = false;
|
||||||
$this->headers = array();
|
$this->headers = array();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -58,7 +59,7 @@ class FirePHPHandler extends BaseFirePHPHandler
|
|||||||
*/
|
*/
|
||||||
protected function sendHeader($header, $content)
|
protected function sendHeader($header, $content)
|
||||||
{
|
{
|
||||||
if (!$this->sendHeaders) {
|
if (!self::$sendHeaders) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user