Skip to content

Commit c8b0d08

Browse files
Change chrome header size limit
Due to change in chromium header size support, the size limit enforced by the handler must be decreased.
1 parent 9a6f714 commit c8b0d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Monolog/Handler/ChromePHPHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
4343
/**
4444
* Tracks whether we sent too much data
4545
*
46-
* Chrome limits the headers to 256KB, so when we sent 240KB we stop sending
46+
* Chrome limits the headers to 4KB, so when we sent 3KB we stop sending
4747
*
4848
* @var bool
4949
*/
@@ -136,7 +136,7 @@ protected function send()
136136

137137
$json = @json_encode(self::$json);
138138
$data = base64_encode(utf8_encode($json));
139-
if (strlen($data) > 240 * 1024) {
139+
if (strlen($data) > 3 * 1024) {
140140
self::$overflowed = true;
141141

142142
$record = array(

0 commit comments

Comments
 (0)