From 7496ba8f3ab6de0d10ccf01acbc97a4be0ccb2a6 Mon Sep 17 00:00:00 2001 From: Sergio Brighenti Date: Tue, 1 May 2018 14:44:21 +0200 Subject: [PATCH] removed http2push from dashboard --- app/Controllers/DashboardController.php | 5 ----- composer.lock | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/Controllers/DashboardController.php b/app/Controllers/DashboardController.php index 230b1ef..85c0d89 100644 --- a/app/Controllers/DashboardController.php +++ b/app/Controllers/DashboardController.php @@ -37,7 +37,6 @@ class DashboardController extends Controller } $filesystem = $this->getStorage(); - $base_url = Flight::get('config')['base_url']; foreach ($medias as $media) { $extension = pathinfo($media->filename, PATHINFO_EXTENSION); @@ -50,10 +49,6 @@ class DashboardController extends Controller $media->mimetype = $mime; $media->extension = $extension; $media->size = $this->humanFilesize($size); - - if ($type = explode('/', $mime)[0] === 'image') { - $this->http2push("$base_url/$media->user_code/$media->code.$extension/raw"); - } } Flight::render( diff --git a/composer.lock b/composer.lock index 6309b61..85b8b61 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "a89ea5afa20682a68557acba9279184d", + "content-hash": "ff5928bff4f35e40b33b816f810d4409", "packages": [ { "name": "league/flysystem",