lib/fiona7/scrivito_patches/binary.rb in infopark_fiona7-0.71.1.3 vs lib/fiona7/scrivito_patches/binary.rb in infopark_fiona7-0.71.1.4
- old
+ new
@@ -466,10 +466,14 @@
options[:path] = "/_b/#{self.blob_id}/#{self.filename}"
if self.transformation.present?
self.validate_transformation!
options[:query] = self.encode_query_string
end
- URI::HTTP.build(options).to_s
+ if port == 443
+ URI::HTTPS.build(options).to_s
+ else
+ URI::HTTP.build(options).to_s
+ end
end
def encode_query_string
token = ParamEncoder.new.encode(self.transformation)
return "t=#{token}"