Skip to content

Commit

Permalink
Merge pull request #31 from jankremlacek/patch-1
Browse files Browse the repository at this point in the history
Check Response Content-Type
  • Loading branch information
KABBOUCHI authored Dec 10, 2018
2 parents d0265e3 + 61d8278 commit 5754415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/Impersonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function handle($request, $next)

!$request->expectsJson() &&

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

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

0 comments on commit 5754415

Please sign in to comment.