mirror of
https://github.com/pelican-dev/panel.git
synced 2025-10-29 07:26:52 +01:00
Fix mime type for jar files (#1757)
This commit is contained in:
parent
f02b58c320
commit
df75dbe2ad
@ -175,7 +175,7 @@ class File extends Model
|
||||
'is_directory' => $file['directory'],
|
||||
'is_file' => $file['file'],
|
||||
'is_symlink' => $file['symlink'],
|
||||
'mime_type' => $file['mime'],
|
||||
'mime_type' => $file['file'] && str($file['name'])->lower()->endsWith('.jar') && in_array($file['mime'], self::ARCHIVE_MIMES) ? 'application/jar' : $file['mime'],
|
||||
];
|
||||
}, $contents);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user