Subject: | application/octet-stream for every response |
Date: | Fri, 8 Feb 2008 10:35:29 -0800 |
To: | bug-File-Type [...] rt.cpan.org |
From: | Daniel Bretoi <daniel [...] vinq.com> |
Hi,
I'm getting mime type to be application/octet-stream for odd things
I've tried so far. here are a couple of examples:
$ echo `date` > date.txt && file -i date.txt
date.txt: text/plain; charset=us-ascii
$ perl -wle 'use File::Type; my $ft = File::Type->new(); print $ft-
Show quoted text
>checktype_filename("date.txt");'
application/octet-stream [ expected text/plain]
$ perl -wle 'use File::Type; my $ft = File::Type->new(); print $ft-
Show quoted text >checktype_contents("hello world");'
application/octet-stream [ expected text/plain]
Here's a successful case:
perl -wle 'use File::Type; my $ft = File::Type->new(); print $ft-
Show quoted text >checktype_filename("folder1.png");'
image/x-png
Daniel