mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Replace Uri.UriSchemeHttps by https in PackageListParser
Uri.UriSchemeHttps is not available on CoreCLR
This commit is contained in:
1 parent
0dd425da19
commit
0ac0f1962e
1 file changed
+2
-2
+2
-2
@@ -347,9 +347,9 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
|
||||
|
||||
if (!uri.IsFile)
|
||||
{
|
||||
if (uri.Scheme != Uri.UriSchemeHttps)
|
||||
if (uri.Scheme != "https")
|
||||
{
|
||||
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Messages.UriSchemeNotSupported, uri.Scheme, Uri.UriSchemeHttps));
|
||||
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Messages.UriSchemeNotSupported, uri.Scheme, "https"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user