We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3be482 commit a53d6c1Copy full SHA for a53d6c1
GitHubCore.ps1
@@ -315,7 +315,7 @@ function Invoke-GHRestMethod
315
# Disable Progress Bar in function scope during Invoke-WebRequest
316
$ProgressPreference = 'SilentlyContinue'
317
318
- if ($PSVersionTable.PSVersion -lt 7.0.0)
+ if ($PSVersionTable.PSVersion -lt [version]"7.0.0")
319
{
320
[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12
321
}
@@ -585,7 +585,7 @@ function Invoke-GHRestMethod
585
586
finally
587
588
589
590
[Net.ServicePointManager]::SecurityProtocol = $originalSecurityProtocol
591
0 commit comments