mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Remove StringHelper functions
This commit is contained in:
@@ -165,20 +165,20 @@ namespace MediaBrowser.Model.Net
|
||||
}
|
||||
|
||||
// Type text
|
||||
if (StringHelper.EqualsIgnoreCase(ext, ".html")
|
||||
|| StringHelper.EqualsIgnoreCase(ext, ".htm"))
|
||||
if (string.Equals(ext, ".html", StringComparison.OrdinalIgnoreCase)
|
||||
|| string.Equals(ext, ".htm", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "text/html; charset=UTF-8";
|
||||
}
|
||||
|
||||
if (StringHelper.EqualsIgnoreCase(ext, ".log")
|
||||
|| StringHelper.EqualsIgnoreCase(ext, ".srt"))
|
||||
if (string.Equals(ext, ".log", StringComparison.OrdinalIgnoreCase)
|
||||
|| string.Equals(ext, ".srt", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "text/plain";
|
||||
}
|
||||
|
||||
// Misc
|
||||
if (StringHelper.EqualsIgnoreCase(ext, ".dll"))
|
||||
if (string.Equals(ext, ".dll", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "application/octet-stream";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user