Skip to content

Commit 8e031e4

Browse files
committed
Add error instead of empty array
1 parent 64956c2 commit 8e031e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DebugBar/DebugBar.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ public function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength =
251251
)));
252252

253253
if (strlen($data) > $maxTotalHeaderLength){
254-
return array();
254+
$data = rawurlencode(json_encode(array(
255+
'error' => 'Maximum header size exceeded'
256+
)));
255257
}
256258

257259
$chunks = array();

0 commit comments

Comments
 (0)