1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 20:27:31 +02:00

Change chrome header size limit

Due to change in chromium header size support, the size limit enforced by the handler must be decreased.
This commit is contained in:
Pierre Lannoy
2019-09-05 13:28:42 +02:00
committed by GitHub
parent 9a6f71466a
commit c8b0d08ceb

View File

@@ -43,7 +43,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
/** /**
* Tracks whether we sent too much data * Tracks whether we sent too much data
* *
* Chrome limits the headers to 256KB, so when we sent 240KB we stop sending * Chrome limits the headers to 4KB, so when we sent 3KB we stop sending
* *
* @var bool * @var bool
*/ */
@@ -136,7 +136,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
$json = @json_encode(self::$json); $json = @json_encode(self::$json);
$data = base64_encode(utf8_encode($json)); $data = base64_encode(utf8_encode($json));
if (strlen($data) > 240 * 1024) { if (strlen($data) > 3 * 1024) {
self::$overflowed = true; self::$overflowed = true;
$record = array( $record = array(