Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion src/Authentication/Authentication/Helpers/ContentHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private static bool CheckIsText(string contentType)
|| CheckIsJson(contentType);

// Further content type analysis is available on Windows
if (Platform.IsWindows && !isText)
if (OperatingSystem.IsWindows() && !isText)
{
// Media types registered with Windows as having a perceived type of text, are text
using (var contentTypeKey = Registry.ClassesRoot.OpenSubKey(@"MIME\Database\Content Type\" + contentType))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ internal string PlatformName
{
get
{
if (Platform.IsWindows)
if (OperatingSystem.IsWindows())
{
// only generate the windows user agent once
if (_windowsUserAgent == null)
Expand All @@ -69,11 +69,11 @@ internal string PlatformName

return _windowsUserAgent;
}
else if (Platform.IsMacOS)
else if (OperatingSystem.IsMacOS())
{
return "Macintosh";
}
else if (Platform.IsLinux)
else if (OperatingSystem.IsLinux())
{
return "Linux";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="5.6.0" />
<PackageReference Include="Microsoft.IdentityModel.Logging" Version="5.6.0" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="5.6.0" />
<PackageReference Include="Microsoft.PowerShell.Commands.Utility" Version="6.0.4" />
<PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" />
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
Expand Down