Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Dont modify response if no view was loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Jul 23, 2018
1 parent 001ad03 commit 0c0f923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrayMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function handle($request, Closure $next)
|| $response->getContent() === false
) {
return $response;
} elseif (is_null($response->exception)) {
} elseif (is_null($response->exception) && !is_null($this->xray->getBaseView())) {
// Modify the response to add the Debugbar
$this->injectXrayBar($response);
}
Expand Down

0 comments on commit 0c0f923

Please sign in to comment.