diff --git a/src/chocolatey.resources/helpers/functions/Get-WebFileName.ps1 b/src/chocolatey.resources/helpers/functions/Get-WebFileName.ps1 index 334d709da8..0bf06577ed 100644 --- a/src/chocolatey.resources/helpers/functions/Get-WebFileName.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-WebFileName.ps1 @@ -158,6 +158,7 @@ param( $request.AllowAutoRedirect = $true $request.MaximumAutomaticRedirections = 20 #$request.KeepAlive = $true + $request.AutomaticDecompression = [System.Net.DecompressionMethods]::GZip -bor [System.Net.DecompressionMethods]::Deflate $request.Timeout = 30000 if ($env:chocolateyRequestTimeout -ne $null -and $env:chocolateyRequestTimeout -ne '') { $request.Timeout = $env:chocolateyRequestTimeout diff --git a/src/chocolatey.resources/helpers/functions/Get-WebHeaders.ps1 b/src/chocolatey.resources/helpers/functions/Get-WebHeaders.ps1 index 17d77033e3..c1bfdbf4e0 100644 --- a/src/chocolatey.resources/helpers/functions/Get-WebHeaders.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-WebHeaders.ps1 @@ -114,6 +114,7 @@ param( $request.AllowAutoRedirect = $true $request.MaximumAutomaticRedirections = 20 #$request.KeepAlive = $true + $request.AutomaticDecompression = [System.Net.DecompressionMethods]::GZip -bor [System.Net.DecompressionMethods]::Deflate $request.Timeout = 30000 if ($env:chocolateyRequestTimeout -ne $null -and $env:chocolateyRequestTimeout -ne '') { $request.Timeout = $env:chocolateyRequestTimeout