1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 05:07:36 +02:00

Only send header when there is a value, fixes #352

This commit is contained in:
Jordi Boggiano
2014-04-10 17:50:52 +02:00
parent 99ecfc56bc
commit c9226dd0f8

View File

@@ -130,7 +130,9 @@ class ChromePHPHandler extends AbstractProcessingHandler
$data = base64_encode(utf8_encode($json));
}
$this->sendHeader(self::HEADER_NAME, $data);
if (trim($data) !== '') {
$this->sendHeader(self::HEADER_NAME, $data);
}
}
/**