diff --git a/lib/install.ps1 b/lib/install.ps1 index 9dc45929dd..857a9a929f 100644 --- a/lib/install.ps1 +++ b/lib/install.ps1 @@ -350,7 +350,7 @@ function dl($url, $to, $cookies, $progress) { $wreq = [net.webrequest]::create($reqUrl) if($wreq -is [net.httpwebrequest]) { $wreq.useragent = Get-UserAgent - if (-not ($url -imatch "sourceforge\.net")) { + if (-not ($url -imatch "sourceforge\.net" -or $url -imatch "portableapps\.com")) { $wreq.referer = strip_filename $url } if($cookies) {