+5
-0
lines changedFilter options
+5
-0
lines changed Original file line number Diff line number Diff line change
@@ -201,6 +201,7 @@ function Invoke-GHRestMethod
201
201
}
202
202
203
203
$NoStatus = Resolve-ParameterWithDefaultConfigurationValue -Name NoStatus -ConfigValueName DefaultNoStatus
204
+
$originalSecurityProtocol = [Net.ServicePointManager]::SecurityProtocol
204
205
205
206
try
206
207
{
@@ -560,6 +561,10 @@ function Invoke-GHRestMethod
560
561
Set-TelemetryException -Exception $ex -ErrorBucket $errorBucket -Properties $localTelemetryProperties -NoStatus:$NoStatus
561
562
throw $newLineOutput
562
563
}
564
+
finally
565
+
{
566
+
[Net.ServicePointManager]::SecurityProtocol = $originalSecurityProtocol
567
+
}
563
568
}
564
569
565
570
function Invoke-GHRestMethodMultipleResult
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4