Skip to content

Commit

Permalink
Merge branch 'pr1188' into stable
Browse files Browse the repository at this point in the history
* pr1188:
  (GH-1056) Support auto decompression for Headers
  (GH-1056) Add support for automatic decompression to Get-WebFile
  • Loading branch information
ferventcoder committed Mar 9, 2017
2 parents ebfdaa2 + 01af07d commit bd15226
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chocolatey.resources/helpers/functions/Get-WebFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ param(
$explicitProxy = $env:chocolateyProxyLocation
$explicitProxyUser = $env:chocolateyProxyUser
$explicitProxyPassword = $env:chocolateyProxyPassword
$explicitProxyBypassList = $env:chocolateyProxyBypassList
$explicitProxyBypassList = $env:chocolateyProxyBypassList
$explicitProxyBypassOnLocal = $env:chocolateyProxyBypassOnLocal
if ($explicitProxy -ne $null) {
# explicit proxy
Expand Down Expand Up @@ -159,6 +159,7 @@ param(
$req.AllowAutoRedirect = $true
$req.MaximumAutomaticRedirections = 20
#$req.KeepAlive = $true
$req.AutomaticDecompression = [System.Net.DecompressionMethods]::GZip -bor [System.Net.DecompressionMethods]::Deflate
$req.Timeout = 30000
if ($env:chocolateyRequestTimeout -ne $null -and $env:chocolateyRequestTimeout -ne '') {
Write-Debug "Setting request timeout to $env:chocolateyRequestTimeout"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd15226

Please sign in to comment.