1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 12:17:35 +02:00

Merge pull request #333 from staabm/patch-1

Minor simplification of BrowserConsoleHandler
This commit is contained in:
Jordi Boggiano
2014-03-09 18:07:55 +01:00

View File

@@ -62,8 +62,8 @@ class BrowserConsoleHandler extends AbstractProcessingHandler
{
// Check content type
foreach (headers_list() as $header) {
if (strpos(strtolower($header), 'content-type:') === 0) {
if (strpos(strtolower($header), 'text/html') === false) {
if (stripos($header, 'content-type:') === 0) {
if (stripos($header, 'text/html') === false) {
// This handler only works with HTML outputs
return;
}