lib/carrierwave/storage/aliyun.rb in carrierwave-aliyun-0.4.1 vs lib/carrierwave/storage/aliyun.rb in carrierwave-aliyun-0.4.2

- old
+ new

@@ -17,11 +17,11 @@ @aliyun_private_read = uploader.aliyun_private_read # Host for get request @aliyun_host = uploader.aliyun_host || "http://#{@aliyun_bucket}.oss-#{@aliyun_area}.aliyuncs.com" - if not @aliyun_host.include?("http") - raise "config.aliyun_host requirement include http:// or https://, but you give: #{@aliyun_host}" + if not @aliyun_host.include?("//") + raise "config.aliyun_host requirement include // http:// or https://, but you give: #{@aliyun_host}" end end # 上传文件 # params: