diff --git a/lib/install.ps1 b/lib/install.ps1 index b058b53134..d0c265f325 100644 --- a/lib/install.ps1 +++ b/lib/install.ps1 @@ -367,7 +367,8 @@ function dl_with_cache_aria2($app, $version, $manifest, $architecture, $dir, $co # download with filesize and progress indicator function dl($url, $to, $cookies, $progress) { - $wreq = [net.webrequest]::create($url) + $reqUrl = ($url -split "#")[0] + $wreq = [net.webrequest]::create($reqUrl) if($wreq -is [net.httpwebrequest]) { $wreq.useragent = Get-UserAgent if (-not ($url -imatch "sourceforge\.net")) {