We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9253c81 + e4f3062 commit 063c626Copy full SHA for 063c626
1 file changed
src/Http/Middleware/Impersonate.php
@@ -6,6 +6,7 @@
6
use Illuminate\Http\Response;
7
use Lab404\Impersonate\Services\ImpersonateManager;
8
use Symfony\Component\HttpFoundation\BinaryFileResponse;
9
+use Symfony\Component\HttpFoundation\StreamedResponse;
10
11
class Impersonate
12
{
@@ -32,6 +33,8 @@ public function handle($request, $next)
32
33
!($response instanceof RedirectResponse) &&
34
35
!($response instanceof BinaryFileResponse) &&
36
+
37
+ !($response instanceof StreamedResponse) &&
38
39
$request->acceptsHtml() &&
40
0 commit comments