Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions GitHubCore.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ function Invoke-GHRestMethod
}

$NoStatus = Resolve-ParameterWithDefaultConfigurationValue -Name NoStatus -ConfigValueName DefaultNoStatus
$securityProtocol = [Net.ServicePointManager]::SecurityProtocol

try
{
Expand Down Expand Up @@ -540,6 +541,10 @@ function Invoke-GHRestMethod
Set-TelemetryException -Exception $ex -ErrorBucket $errorBucket -Properties $localTelemetryProperties -NoStatus:$NoStatus
throw $newLineOutput
}
finally
{
[Net.ServicePointManager]::SecurityProtocol = $securityProtocol
}
}

function Invoke-GHRestMethodMultipleResult
Expand Down