mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-21 09:20:08 -05:00
(Fix) Http2ServerPush Middleware 🐛
- str helpers removed in Laravel 6
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Symfony\Component\DomCrawler\Crawler;
|
||||
@@ -140,7 +141,7 @@ class Http2ServerPush
|
||||
];
|
||||
|
||||
$type = collect($linkTypeMap)->first(function ($type, $extension) use ($url) {
|
||||
return str_contains(strtoupper($url), $extension);
|
||||
return Str::contains(strtoupper($url), $extension);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user