summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/axlsx/util/mime_type_utils.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/axlsx/util/mime_type_utils.rb b/lib/axlsx/util/mime_type_utils.rb
index 5dbe0ac5..c2e6909f 100644
--- a/lib/axlsx/util/mime_type_utils.rb
+++ b/lib/axlsx/util/mime_type_utils.rb
@@ -16,11 +16,7 @@ module Axlsx
# @param [String] v URI
# @return [String] File mime type
def self.get_mime_type_from_uri(v)
- if URI.respond_to?(:open)
- Marcel::MimeType.for(URI.open(v))
- else
- Marcel::MimeType.for(URI.parse(v).open)
- end
+ Marcel::MimeType.for(URI.open(v))
end
end
end