1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 14:16:42 +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,8 +130,10 @@ class ChromePHPHandler extends AbstractProcessingHandler
$data = base64_encode(utf8_encode($json)); $data = base64_encode(utf8_encode($json));
} }
if (trim($data) !== '') {
$this->sendHeader(self::HEADER_NAME, $data); $this->sendHeader(self::HEADER_NAME, $data);
} }
}
/** /**
* Send header string to the client * Send header string to the client