Skip to content

Commit

Permalink
Allow https uris
Browse files Browse the repository at this point in the history
  • Loading branch information
awead committed Jul 11, 2016
1 parent e40652f commit e295141
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -14,7 +14,7 @@ def self.call(stream, directives)
o_name = determine_original_name(file)
m_type = determine_mime_type(file)
uri = URI(directives.fetch(:url))
raise ArgumentError, "#{uri} is not an http uri" unless uri.scheme == 'http'
raise ArgumentError, "#{uri} is not an http(s) uri" unless uri.is_a?(URI::HTTP)
file_set = ActiveFedora::Base.find(ActiveFedora::Base.uri_to_id(uri.to_s))
remote_file = file_set.send("build_#{directives.fetch(:container)}".to_sym)
remote_file.content = file
Expand Down

0 comments on commit e295141

Please sign in to comment.