Skip to content

Commit

Permalink
core(install): Readd "Don't send referer to portableapps.com" (#3961)
Browse files Browse the repository at this point in the history
PortableApps still get hosted on download3.portableapps.com
Reverts #2401
  • Loading branch information
NilsonPark authored May 5, 2020
1 parent a9fa775 commit 48f121e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 48f121e

Please sign in to comment.