diff --git a/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1 b/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1 index 766e20fc83..31c7ed53a0 100644 --- a/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1 @@ -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