Skip to content

Commit af98b3a

Browse files
authored
Don't inject in 'false' content (eg. streamed etc)
1 parent 17afbae commit af98b3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LaravelDebugbar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ public function modifyResponse(Request $request, Response $response)
684684
($response->headers->has('Content-Type') &&
685685
strpos($response->headers->get('Content-Type'), 'html') === false)
686686
|| $request->getRequestFormat() !== 'html'
687+
|| $response->getContent() === false
687688
) {
688689
try {
689690
// Just collect + store data, don't inject it.

0 commit comments

Comments
 (0)