Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Clean URI in download
Browse files Browse the repository at this point in the history
[finishes #118501591]

Signed-off-by: Jonathan Berkhahn <jaberkha@us.ibm.com>
  • Loading branch information
ScarletTanager authored and jberkhahn committed Apr 27, 2016
1 parent d485c0b commit 8a5c497
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dea/utils/download.rb
@@ -1,3 +1,5 @@
require 'dea/utils/uri_cleaner'

class Download
attr_reader :source_uri, :destination_file, :sha1_expected
attr_reader :logger
Expand Down Expand Up @@ -34,7 +36,7 @@ def download!(&blk)
sha1 << chunk
end

context = {:droplet_uri => source_uri}
context = {:droplet_uri => URICleaner.clean(source_uri)}

http.errback do
begin
Expand Down

0 comments on commit 8a5c497

Please sign in to comment.