From 2494be458e05612922b60ffeb0e21aeaedc5f820 Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Tue, 27 Sep 2016 20:11:12 +0900 Subject: [PATCH] Change structure of archive_types.json --- src/configs/archive_types.json | 40 +++++++++++++++------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/src/configs/archive_types.json b/src/configs/archive_types.json index 254fe23..2e90480 100644 --- a/src/configs/archive_types.json +++ b/src/configs/archive_types.json @@ -1,24 +1,20 @@ { - "tar": [ - "application/x-tar", - "application/x-gzip", - "application/gzip", - "application/x-bzip", - "application/x-bzip2", - "application/x-xz", - "application/x-lzma", - "application/x-lzip", - "application/x-compressed-tar", - "application/x-bzip-compressed-tar", - "application/x-bzip2-compressed-tar", - "application/x-xz-compressed-tar", - "application/x-lzma-compressed-tar", - "application/x-lzip-compressed-tar" - ], - "zip": ["application/zip"], - "7z": ["application/x-7z-compressed"], - "rar": [ - "application/x-rar", - "application/x-rar-compressed" - ] + "application/x-tar": "tar", + "application/x-gzip": "tar", + "application/gzip": "tar", + "application/x-bzip": "tar", + "application/x-bzip2": "tar", + "application/x-xz": "tar", + "application/x-lzma": "tar", + "application/x-lzip": "tar", + "application/x-compressed-tar": "tar", + "application/x-bzip-compressed-tar": "tar", + "application/x-bzip2-compressed-tar": "tar", + "application/x-xz-compressed-tar": "tar", + "application/x-lzma-compressed-tar": "tar", + "application/x-lzip-compressed-tar": "tar", + "application/zip": "zip", + "application/x-7z-compressed": "7z", + "application/x-rar": "rar", + "application/x-rar-compressed": "rar" } -- GitLab