Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
* stable:
  GH-1099 Change buffer for FTP downloads to 1MiB
  • Loading branch information
ferventcoder committed Mar 19, 2017
2 parents 40918fb + 5d25060 commit 6ae80d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1
Expand Up @@ -148,8 +148,7 @@ param(

# create the target file on the local system and the download buffer
$writer = New-Object IO.FileStream ($fileName,[IO.FileMode]::Create)

[byte[]]$buffer = New-Object byte[] 1024
[byte[]]$buffer = New-Object byte[] 1048576
[long]$total = [long]$count = 0

$originalEAP = $ErrorActionPreference
Expand Down

0 comments on commit 6ae80d2

Please sign in to comment.