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

Commit 14097e6

Browse files
committed
Only inject xray when the response has no exceptions
1 parent 23a43be commit 14097e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XrayMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function handle($request, Closure $next)
4242
|| $response->getContent() === false
4343
) {
4444
return $response;
45-
} else {
45+
} elseif (is_null($response->exception)) {
4646
// Modify the response to add the Debugbar
4747
$this->injectXrayBar($response);
4848
}

0 commit comments

Comments
 (0)