mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 21:26:43 +02:00
Only send header when there is a value, fixes #352
This commit is contained in:
@@ -130,8 +130,10 @@ class ChromePHPHandler extends AbstractProcessingHandler
|
||||
$data = base64_encode(utf8_encode($json));
|
||||
}
|
||||
|
||||
if (trim($data) !== '') {
|
||||
$this->sendHeader(self::HEADER_NAME, $data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Send header string to the client
|
||||
|
Reference in New Issue
Block a user