From 4cfff0045ea9b3c801ee9dccca68a3d6823a17d0 Mon Sep 17 00:00:00 2001 From: NilsonPark <64817135+NilsonPark@users.noreply.github.com> Date: Mon, 4 May 2020 23:58:26 -0500 Subject: [PATCH] Update install.ps1 do not send referer to portableapps.com --- lib/install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install.ps1 b/lib/install.ps1 index 412895017a..0d392519fc 100644 --- a/lib/install.ps1 +++ b/lib/install.ps1 @@ -357,7 +357,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) {