lib/carrierwave/storage/sftp.rb in carrierwave-ftp-0.2.3 vs lib/carrierwave/storage/sftp.rb in carrierwave-ftp-0.2.4

- old
+ new

@@ -75,10 +75,10 @@ "#{@uploader.sftp_folder}/#{path}" end def file require 'net/http' - url = URI.parse(url) + url = URI.parse(self.url) req = Net::HTTP::Get.new(url.path) Net::HTTP.start(url.host, url.port) do |http| http.request(req) end end