The Free Software Media System - Server Backend & API
Don't compress binary responses
LukePulverenti Luke Pulverenti luke pulverenti4207260657b6
diff --git a/MediaBrowser.ApiInteraction/IDataSerializer.cs b/MediaBrowser.ApiInteraction/IDataSerializer.csindex 04fe19af19..999045ddac 100644--- a/MediaBrowser.ApiInteraction/IDataSerializer.cs+++ b/MediaBrowser.ApiInteraction/IDataSerializer.cs@@ -1,5 +1,4 @@-using System;-using System.IO;+using System.IO;namespace MediaBrowser.ApiInteraction{diff --git a/MediaBrowser.Common/Net/Handlers/BaseSerializationHandler.cs b/MediaBrowser.Common/Net/Handlers/BaseSerializationHandler.csindex 1a366c158f..212c731b7a 100644--- a/MediaBrowser.Common/Net/Handlers/BaseSerializationHandler.cs+++ b/MediaBrowser.Common/Net/Handlers/BaseSerializationHandler.cs@@ -77,6 +77,11 @@ namespace MediaBrowser.Common.Net.Handlersbreak;}}++ public override bool ShouldCompressResponse(string contentType)+ {+ return SerializationFormat != Handlers.SerializationFormat.Protobuf;+ }}public enum SerializationFormatdiff --git a/MediaBrowser.Controller/Kernel.cs b/MediaBrowser.Controller/Kernel.csindex 8896ebc5a2..daf5fcd24d 100644--- a/MediaBrowser.Controller/Kernel.cs+++ b/MediaBrowser.Controller/Kernel.cs@@ -8,6 +8,7 @@ using System.Security.Cryptography;using System.Text;using System.Threading.Tasks;using MediaBrowser.Common.Kernel;+using MediaBrowser.Common.Logging;using MediaBrowser.Controller.Configuration;using MediaBrowser.Controller.IO;using MediaBrowser.Controller.Library;@@ -15,7 +16,6 @@ using MediaBrowser.Controller.Providers;using MediaBrowser.Controller.Resolvers;using MediaBrowser.Model.Entities;using MediaBrowser.Model.Progress;-using MediaBrowser.Common.Logging;namespace MediaBrowser.Controller{