lib/filbunke/client.rb in filbunke-1.10.1 vs lib/filbunke/client.rb in filbunke-1.10.2
- old
+ new
@@ -203,12 +203,12 @@
end
def update_http_file!(file, local_file_path)
begin
async_request = if @repository.user
- Typhoeus::Request.new(file.url, :username => @repository.user, :password => @repository.pass)
+ Typhoeus::Request.new(URI.encode(file.url), :username => @repository.user, :password => @repository.pass)
else
- Typhoeus::Request.new(file.url)
+ Typhoeus::Request.new(URI.encode(file.url))
end
async_request.on_complete do |response|
success = true
begin
if response.code.to_i == 200