aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Services/ResponseHelper.cs
diff options
context:
space:
mode:
authorAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2019-02-08 00:08:35 -0500
committerGitHub <noreply@github.com>2019-02-08 00:08:35 -0500
commitee3a4531a00d0577fca6807a5a4ab031f7987d8e (patch)
tree244b35a2e15c7278630ef34599976fbce57c8ac9 /Emby.Server.Implementations/Services/ResponseHelper.cs
parentd6d9fce898ce058229a6a88800856424180bd892 (diff)
parent70c85925af31ee341f87fced39a67ab7fb4eed77 (diff)
Merge pull request #831 from Bond-009/hashset
Move some arrays to generics
Diffstat (limited to 'Emby.Server.Implementations/Services/ResponseHelper.cs')
-rw-r--r--Emby.Server.Implementations/Services/ResponseHelper.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Services/ResponseHelper.cs b/Emby.Server.Implementations/Services/ResponseHelper.cs
index 16de1a083..dc9975347 100644
--- a/Emby.Server.Implementations/Services/ResponseHelper.cs
+++ b/Emby.Server.Implementations/Services/ResponseHelper.cs
@@ -70,7 +70,7 @@ namespace Emby.Server.Implementations.Services
response.ContentType = defaultContentType;
}
- if (new HashSet<string> { "application/json", }.Contains(response.ContentType))
+ if (response.ContentType == "application/json")
{
response.ContentType += "; charset=utf-8";
}