aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-10-22 17:39:10 -0400
committerGitHub <noreply@github.com>2017-10-22 17:39:10 -0400
commit3fd4dea0aeb20c1a1acd237639808d8ca8a37190 (patch)
tree40709dfb8509304dbece6f78b147f989cc292a50 /Emby.Server.Implementations
parentb780787d6e317df7d2efd59bd7d3384a1f6a30e9 (diff)
parent4fb4a87ca0d2730a8dee20ceb09f31e01ff6d5cf (diff)
Merge pull request #2970 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
index 136d0cc7f..b3c7ecc9f 100644
--- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
+++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
@@ -650,6 +650,9 @@ namespace Emby.Server.Implementations.LiveTv.Listings
bool enableRetry,
ListingsProviderInfo providerInfo)
{
+ // Schedules direct requires that the client support compression and will return a 400 response without it
+ options.EnableHttpCompression = true;
+
try
{
return await _httpClient.Post(options).ConfigureAwait(false);
@@ -678,6 +681,9 @@ namespace Emby.Server.Implementations.LiveTv.Listings
bool enableRetry,
ListingsProviderInfo providerInfo)
{
+ // Schedules direct requires that the client support compression and will return a 400 response without it
+ options.EnableHttpCompression = true;
+
try
{
return await _httpClient.SendAsync(options, "GET").ConfigureAwait(false);