Skip to content

Commit

Permalink
Fix #207 transfer encoding headers persists in session
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaydon committed Jan 19, 2024
1 parent 24f0b09 commit 52fe8fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function CallRestUri {
if ($result.Headers -and $result.Headers['Content-Type'] -like 'application/json;*') {
$result = $result.Content | ConvertFrom-Json
}
$null = $script:webSessionContainer.Headers.Remove('Transfer-Encoding')
}
else {
$result = Invoke-RestMethod @paramInvokeRestMethod @params
Expand Down

0 comments on commit 52fe8fd

Please sign in to comment.