Skip to content

Commit

Permalink
Don't send referer to portableapps.com
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Jul 16, 2018
1 parent d2c4b83 commit 0c2b3da
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 @@ -152,7 +152,7 @@ function dl($url, $to, $cookies, $progress) {
$wreq = [net.webrequest]::create($url)
if($wreq -is [net.httpwebrequest]) {
$wreq.useragent = Get-UserAgent
if (-not ($url -imatch "https?://downloads.sourceforge.net/")) {
if (-not ($url -imatch "downloads\.sourceforge\.net" -or $url -imatch "portableapps\.com")) {
$wreq.referer = strip_filename $url
}
if($cookies) {
Expand Down

0 comments on commit 0c2b3da

Please sign in to comment.