Skip to content

Commit d7e3b90

Browse files
committed
fixes #33
1 parent 5754415 commit d7e3b90

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Http/Middleware/Impersonate.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public function handle($request, $next)
4141

4242
!$request->expectsJson() &&
4343

44-
starts_with($response->headers->get('Content-Type'), 'text/html')
44+
starts_with($response->headers->get('Content-Type'), 'text/html') &&
45+
46+
!str_contains($request->path(), 'nova-api')
4547
) {
4648

4749
/** @var Response $response * */

0 commit comments

Comments
 (0)