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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user