Skip to content

Commit

Permalink
Merge pull request #882 from garden-io/ellenkorbes-patch-1
Browse files Browse the repository at this point in the history
fix(install): Add -UseBasicParsing to Windows installer
  • Loading branch information
edvald authored Jun 26, 2019
2 parents a8c8b35 + 86dacd9 commit 0f4c610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ md -Force $gardenTmpPath | Out-Null
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

# Download and extract the archive to $gardenBinPath
$latestRelease = Invoke-WebRequest "https://github.com/garden-io/garden/releases/latest" -Headers @{"Accept"="application/json"}
$latestRelease = Invoke-WebRequest "https://github.com/garden-io/garden/releases/latest" -UseBasicParsing -Headers @{"Accept"="application/json"}
# The releases are returned in the format {"id":3622206,"tag_name":"hello-1.0.0.11",...}, we have to extract the tag_name.
$json = $latestRelease.Content | ConvertFrom-Json
$latestVersion = $json.tag_name
Expand Down

0 comments on commit 0f4c610

Please sign in to comment.