From d72263d6c1781c404535811c4347e40eb9b52176 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov <“shibanov-1997@inbox.ru”> Date: Tue, 11 Feb 2020 13:02:27 +0300 Subject: [PATCH] replace web request to rest method --- images/win/scripts/Installers/Install-Firefox.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Install-Firefox.ps1 b/images/win/scripts/Installers/Install-Firefox.ps1 index 14c4763e..ff70fc78 100644 --- a/images/win/scripts/Installers/Install-Firefox.ps1 +++ b/images/win/scripts/Installers/Install-Firefox.ps1 @@ -9,7 +9,7 @@ Import-Module -Name PathHelpers -Force $temp_install_dir = 'C:\Windows\Installer' New-Item -Path $temp_install_dir -ItemType Directory -Force -$versionsJson = Invoke-WebRequest "https://product-details.mozilla.org/1.0/firefox_versions.json" | ConvertFrom-Json +$versionsJson = Invoke-RestMethod "https://product-details.mozilla.org/1.0/firefox_versions.json" $latestVersion = $versionsJson.LATEST_FIREFOX_VERSION Write-Host "Firefox latest version: $latestVersion"