aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-28 00:19:38 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-28 00:19:38 -0400
commit7cd1416d276cfede3de315cde434b5d78936e011 (patch)
tree40c68e20876f77b4505b4421c424acefbb7c0347 /Emby.Server.Implementations/LiveTv
parent44a270fa6fed9ef806e02a200af0bb14b5cf0a0e (diff)
fix music artists not showing in collections
Diffstat (limited to 'Emby.Server.Implementations/LiveTv')
-rw-r--r--Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
index b3c7ecc9f3..e210e2224e 100644
--- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
+++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
@@ -653,6 +653,14 @@ namespace Emby.Server.Implementations.LiveTv.Listings
// Schedules direct requires that the client support compression and will return a 400 response without it
options.EnableHttpCompression = true;
+ // On windows 7 under .net core, this header is not getting added
+#if NETSTANDARD2_0
+ if (Environment.OSVersion.Platform == PlatformID.Win32NT)
+ {
+ options.RequestHeaders["Accept-Encoding"] = "deflate";
+ }
+#endif
+
try
{
return await _httpClient.Post(options).ConfigureAwait(false);
@@ -684,6 +692,14 @@ namespace Emby.Server.Implementations.LiveTv.Listings
// Schedules direct requires that the client support compression and will return a 400 response without it
options.EnableHttpCompression = true;
+ // On windows 7 under .net core, this header is not getting added
+#if NETSTANDARD2_0
+ if (Environment.OSVersion.Platform == PlatformID.Win32NT)
+ {
+ options.RequestHeaders["Accept-Encoding"] = "deflate";
+ }
+#endif
+
try
{
return await _httpClient.SendAsync(options, "GET").ConfigureAwait(false);