Commit aa51152e by Daniel Mendler

v0.2.1

parent 4a26581f
......@@ -83,7 +83,7 @@ class MimeMagic
MAGIC.find {|type, matches| magic_match_str(str, matches) }
else
io.binmode
io.set_encoding(Encoding::BINARY, Encoding::BINARY) if io.respond_to?(:set_encoding)
io.set_encoding(Encoding::BINARY) if io.respond_to?(:set_encoding)
MAGIC.find {|type, matches| magic_match_io(io, matches) }
end
mime && new(mime[0])
......
class MimeMagic
# MimeMagic version string
# @api public
VERSION = '0.2.0'
VERSION = '0.2.1'
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment