aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-02-12 21:06:34 +0100
committerBond-009 <bond.009@outlook.com>2019-02-12 21:06:47 +0100
commit3f13851be54ce97df72fc27a15ee74c7600e38b1 (patch)
treea6cb6449b048f0a4f1537bad91b3ac84ae9c8000 /Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
parentea446fd4a3c41c1350a4faf34044bdf808d334fd (diff)
Address comments
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/HttpResultFactory.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/HttpResultFactory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
index e7e3308dc..85a08b05a 100644
--- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
+++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
@@ -277,7 +277,8 @@ namespace Emby.Server.Implementations.HttpServer
private object ToOptimizedResultInternal<T>(IRequest request, T dto, IDictionary<string, string> responseHeaders = null)
{
- var contentType = request.ResponseContentType?.Split(';')[0];
+ // TODO: @bond use Span and .Equals
+ var contentType = request.ResponseContentType?.Split(';')[0].Trim().ToLowerInvariant();
switch (contentType)
{