File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 20
20
use Illuminate \Config \Repository as ConfigRepository ;
21
21
use Symfony \Component \HttpKernel \HttpKernelInterface ;
22
22
use Illuminate \Contracts \Routing \TerminableMiddleware ;
23
+ use Symfony \Component \HttpFoundation \BinaryFileResponse ;
23
24
use Symfony \Component \HttpKernel \Exception \HttpException ;
24
25
use Symfony \Component \HttpFoundation \Request as SymfonyRequest ;
25
26
use Symfony \Component \HttpFoundation \Response as SymfonyResponse ;
@@ -1329,9 +1330,7 @@ public function prepareResponse($response)
1329
1330
{
1330
1331
if (! $ response instanceof SymfonyResponse) {
1331
1332
$ response = new Response ($ response );
1332
- }
1333
-
1334
- if ($ response instanceof BinaryFileResponse) {
1333
+ } elseif ($ response instanceof BinaryFileResponse) {
1335
1334
$ response = $ response ->prepare (Request::capture ());
1336
1335
}
1337
1336
You can’t perform that action at this time.
0 commit comments