Don't compress binary responses

pull/702/head
LukePulverenti Luke Pulverenti luke pulverenti 12 years ago
parent db575695e9
commit 4207260657

@ -1,5 +1,4 @@
using System;
using System.IO;
using System.IO;
namespace MediaBrowser.ApiInteraction
{

@ -77,6 +77,11 @@ namespace MediaBrowser.Common.Net.Handlers
break;
}
}
public override bool ShouldCompressResponse(string contentType)
{
return SerializationFormat != Handlers.SerializationFormat.Protobuf;
}
}
public enum SerializationFormat

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

Loading…
Cancel
Save