add a missing chomp

master
Joey Hess 2010-10-19 21:37:31 -04:00
parent a0b55ac3cd
commit 9b832df0d2
1 changed files with 1 additions and 0 deletions

View File

@ -148,6 +148,7 @@ sub match_mimetype ($$;@) {
if (! defined $mimetype) {
open(my $file_h, "-|", "file", "-bi", $file);
$mimetype=<$file_h>;
chomp $mimetype;
close $file_h;
}
if (! defined $mimetype || $mimetype !~s /;.*//) {