lib/repertoire/media/media.rb in repertoire-0.2.1 vs lib/repertoire/media/media.rb in repertoire-0.2.2

- old
+ new

@@ -106,10 +106,10 @@ # # Get the Media type that was registered for the scheme of the # specified _uri_. # def Media.guess_from_uri(uri) - Media.supports_scheme(URI(uri).scheme) + Media.supports_scheme(uri.to_s.scan(/^[^:\/@]+:/).first.chop) end # # Attempts to determine the correct Media type for the specified _path_. #