mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Merge pull request #333 from staabm/patch-1
Minor simplification 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