summaryrefslogtreecommitdiffstats
path: root/1081.patch
blob: 71c0dd434fe985241d532b9b1c2b3ab66645e7cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 1c4f297d30f51493c6ed54c827ad85132b3c8f61 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Fri, 11 Oct 2019 12:00:18 +0200
Subject: [PATCH] add 'application/x-empty' for 7.4

---
 src/Adapter/Local.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Adapter/Local.php b/src/Adapter/Local.php
index 3236349a..c6e6fa86 100644
--- a/src/Adapter/Local.php
+++ b/src/Adapter/Local.php
@@ -319,7 +319,7 @@ public function getMimetype($path)
         $finfo = new Finfo(FILEINFO_MIME_TYPE);
         $mimetype = $finfo->file($location);
 
-        if (in_array($mimetype, ['application/octet-stream', 'inode/x-empty'])) {
+        if (in_array($mimetype, ['application/octet-stream', 'inode/x-empty', 'application/x-empty'])) {
             $mimetype = Util\MimeType::detectByFilename($location);
         }