1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 13:46:38 +02:00
This commit is contained in:
Daniel Blok
2015-06-22 15:48:06 +02:00
parent f856456b3d
commit e71ccdeb68

View File

@@ -64,7 +64,7 @@ class BrowserConsoleHandler extends AbstractProcessingHandler
foreach (headers_list() as $header) {
if (stripos($header, 'content-type:') === 0) {
// This handler only works with HTML and javascript outputs
// text/javascript is obsoute in favour of application/javascript, but still used
// text/javascript is obsolete in favour of application/javascript, but still used
if (stripos($header, 'application/javascript') !== false || stripos($header, 'text/javascript') !== false) {
$htmlTags = false;
} elseif (stripos($header, 'text/html') === false) {