Address comments

This commit is contained in:
Bond-009
2019-02-12 21:06:34 +01:00
parent ea446fd4a3
commit 3f13851be5
3 changed files with 5 additions and 4 deletions

View File

@@ -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)
{