Skip to content

Commit

Permalink
fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Dec 10, 2018
1 parent 5754415 commit d7e3b90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Middleware/Impersonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function handle($request, $next)

!$request->expectsJson() &&

starts_with($response->headers->get('Content-Type'), 'text/html')
starts_with($response->headers->get('Content-Type'), 'text/html') &&

!str_contains($request->path(), 'nova-api')
) {

/** @var Response $response * */
Expand Down

0 comments on commit d7e3b90

Please sign in to comment.