mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Don't compress binary responses
This commit is contained in:
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…
Reference in New Issue
Block a user