Skip to content

Commit

Permalink
install: ignore url fragment for PowerShell Core 6.1.0 (#2602)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukihane authored and r15ch13 committed Sep 16, 2018
1 parent 610136c commit 5f0ca5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 5f0ca5d

Please sign in to comment.