download: enable proxy support for HTTPS.
[tools/build.git] / download
index 6b374d3..5442727 100755 (executable)
--- a/download
+++ b/download
@@ -88,7 +88,7 @@ for my $url (@ARGV) {
        $url = URI->new($url);
    }
   }
-  $ua->env_proxy if $url->scheme ne 'https';
+  $ua->env_proxy;
   my $dest = "$dir/".basename($url->path).".tmp";
   unlink($dest);       # just in case
   my $retry = 3;