mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
Minor simplificationy of BrowserConsoleHandler
This commit is contained in:
@@ -62,8 +62,8 @@ class BrowserConsoleHandler extends AbstractProcessingHandler
|
|||||||
{
|
{
|
||||||
// Check content type
|
// Check content type
|
||||||
foreach (headers_list() as $header) {
|
foreach (headers_list() as $header) {
|
||||||
if (strpos(strtolower($header), 'content-type:') === 0) {
|
if (stripos($header, 'content-type:') === 0) {
|
||||||
if (strpos(strtolower($header), 'text/html') === false) {
|
if (stripos($header, 'text/html') === false) {
|
||||||
// This handler only works with HTML outputs
|
// This handler only works with HTML outputs
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user