Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Dec 5, 2018
1 parent 9eb14f3 commit 9bb2f23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Http/Middleware/Impersonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public function handle($request, $next)

!($response instanceof JsonResponse) &&

!$request->expectsJson() &&

$request->acceptsHtml()
) {

Expand Down

0 comments on commit 9bb2f23

Please sign in to comment.