8000 bug #22292 Fixes #22264 - add support for Chrome headless (redthor) · symfony/symfony@cb49907 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb49907

Browse files
committed
bug #22292 Fixes #22264 - add support for Chrome headless (redthor)
This PR was merged into the 2.7 branch. Discussion ---------- Fixes #22264 - add support for Chrome headless | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22264 | License | MIT | Doc PR | Commits ------- a03dbd2 Fixes #22264 - add support for Chrome headless, see also Seldaek/monolog#966
2 parents 405a1a4 + a03dbd2 commit cb49907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function onKernelResponse(FilterResponseEvent $event)
4141
return;
4242
}
4343

44-
if (!preg_match('{\b(?:Chrome/\d+(?:\.\d+)*|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}', $event->getRequest()->headers->get('User-Agent'))) {
44+
if (!preg_match('{\b(?:Chrome/\d+(?:\.\d+)*|HeadlessChrome|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}', $event->getRequest()->headers->get('User-Agent'))) {
4545
$this->sendHeaders = false;
4646
$this->headers = array();
4747

0 commit comments

Comments
 (0)
0