Skip to content

Commit

Permalink
Fix chunked encoding error #213
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaydon committed Nov 1, 2023
1 parent e5f8838 commit 88af203
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ function CallRestUri {

if ($params.OutFile -or $params.InFile) {
$ProgressPreference = 'SilentlyContinue'
$params.Header.Add("Transfer-Encoding", "chunked")
if ($params.InFile) {
$params.Header.Add("Transfer-Encoding", "chunked")
}
if ($null -eq $params.TimeoutSec) {
$paramInvokeRestMethod.TimeoutSec = 300
}
Expand Down

0 comments on commit 88af203

Please sign in to comment.