mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Update Detection.php
The latter implies the former. https://github.com/nextcloud/server/pull/38261#discussion_r1196708412 Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
This commit is contained in:
parent
e7cc7653b8
commit
9f6f4b105f
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ class Detection implements IMimeTypeDetector {
|
|||
}
|
||||
}
|
||||
|
||||
if (str_contains($path, '://') && str_starts_with($path, 'file://')) {
|
||||
if (str_starts_with($path, 'file://')) {
|
||||
// Is the file wrapped in a stream?
|
||||
return 'application/octet-stream';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue