Skip to content

Commit

Permalink
Don't inject in 'false' content (eg. streamed etc)
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored Jun 14, 2017
1 parent 17afbae commit af98b3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ public function modifyResponse(Request $request, Response $response)
($response->headers->has('Content-Type') &&
strpos($response->headers->get('Content-Type'), 'html') === false)
|| $request->getRequestFormat() !== 'html'
|| $response->getContent() === false
) {
try {
// Just collect + store data, don't inject it.
Expand Down

0 comments on commit af98b3a

Please sign in to comment.