Skip to content

Commit

Permalink
[doc] Update tar.bz2 mime type
Browse files Browse the repository at this point in the history
 * Unify the content type of gzip compressed tars to application/x-gtar-compressed
 * Unify the content type of bzip2 compressed tars to application/x-bzip-compressed-tar

Exact reasoning will be provided in the PR.
  • Loading branch information
ToMe25 committed Sep 17, 2024
1 parent 9c3c953 commit 39d9ad9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/config/conf.d/mime.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mimetype.assign = (
".gpkg.tar" => "application/vnd.gentoo.gpkg",
".1905.1" => "application/vnd.ieee.1905",
".syft.json" => "application/vnd.syft+json",
".tar.bz2" => "application/x-gtar-compressed",
".tar.bz2" => "application/x-bzip-compressed-tar",
".tar.gz" => "application/x-gtar-compressed",
".a2l" => "application/A2L",
".aml" => "application/AML",
Expand Down Expand Up @@ -117,7 +117,6 @@ mimetype.assign = (
".glbuf" => "application/gltf-buffer",
".gml" => "application/gml+xml",
".gz" => "application/gzip",
".tgz" => "application/gzip",
".stk" => "application/hyperstudio",
".ink" => "application/inkml+xml",
".inkml" => "application/inkml+xml",
Expand Down Expand Up @@ -978,6 +977,7 @@ mimetype.assign = (
".bcpio" => "application/x-bcpio",
".torrent" => "application/x-bittorrent",
".bz2" => "application/x-bzip2",
".tbz" => "application/x-bzip-compressed-tar",
".vcd" => "application/x-cdlink",
".crx" => "application/x-chrome-extension",
".cpio" => "application/x-cpio",
Expand All @@ -988,7 +988,7 @@ mimetype.assign = (
".dvi" => "application/x-dvi",
".spl" => "application/x-futuresplash",
".gtar" => "application/x-gtar",
".tbz" => "application/x-gtar-compressed",
".tgz" => "application/x-gtar-compressed",
".hdf" => "application/x-hdf",
".jnlp" => "application/x-java-jnlp-file",
".pack" => "application/x-java-pack200",
Expand Down
5 changes: 3 additions & 2 deletions doc/scripts/create-mime.conf.pl
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,11 @@ sub print_type {

# other useful mappings
my %useful = (
".tgz" => "application/x-gtar-compressed",
".tar.gz" => "application/x-gtar-compressed",
".gz" => "application/gzip",
".tbz" => "application/x-gtar-compressed",
".tar.bz2" => "application/x-gtar-compressed",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar",
".bz2" => "application/x-bzip2",
".log" => "text/plain",
".conf" => "text/plain",
Expand Down

0 comments on commit 39d9ad9

Please sign in to comment.