lib/fir/util/ali_uploader.rb in fir-cli-2.0.18 vs lib/fir/util/ali_uploader.rb in fir-cli-2.0.19

- old
+ new

@@ -51,13 +51,13 @@ protected def put_file(url, file, headers, need_progress = true) uri = URI(url) - hostname = uri.hostname + hostname = uri.hostname - File.open(file_path, 'rb') do |io| + File.open(file.path, 'rb') do |io| t = Time.now http = Net::HTTP.new(hostname, 443) http.use_ssl = true req = Net::HTTP::Put.new(uri.request_uri, headers) req.content_length = io.size