doesn't sense all tarfiles? #1

Open
bronson opened this Issue Aug 27, 2010 · 1 comment

Projects

None yet

1 participant

@bronson

MimeMagic.by_magic isn't able to sense either file on this page as a tarfile: http://www.vim.org/scripts/script.php?script_id=1729

However, both tar and the Unix file utility like them.

$ wget http://www.vim.org/scripts/download_script.php?src_id=6516 -O tt.tar
$ file tt.tar      => tt.tar: tar archive

in irb:

require 'open-uri'
require 'mimemagic'
x = open('http://www.vim.org/scripts/download_script.php?src_id=6516')
MimeMagic.by_magic(x)    => nil
x = open('http://www.vim.org/scripts/download_script.php?src_id=2877')
MimeMagic.by_magic(x)    => application/x-tar 

(the last 2 are just to prove that mimemagic does sense other tarfiles)

Just fyi, mimemagic is serving me great.

@bronson

The version 1.0 tarfile on this page doesn't get sensed either: http://www.vim.org/scripts/script.php?script_id=2429

The rest are fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment