diff --git a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 index 90f893220c..d446fe6540 100644 --- a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 @@ -203,6 +203,9 @@ param( Write-FunctionCallLogMessage -Invocation $MyInvocation -Parameters $PSBoundParameters + if ($url -ne $null) { $url = $url.Replace("//","/").Replace(":/","://") } + if ($url64bit -ne $null) { $url64bit = $url64bit.Replace("//","/").Replace(":/","://") } + $url32bit = $url # allow user provided values for checksumming