1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47:39 +02:00

Minor simplificationy of BrowserConsoleHandler

This commit is contained in:
Markus Staab
2014-03-09 18:06:01 +01:00
parent 613997042c
commit b9a043fe83

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;
}