mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-31 17:41:29 +00:00
change pcl's to .netstandard
This commit is contained in:
parent
a2dd144d5c
commit
8fd3bf4217
33 changed files with 209 additions and 241 deletions
|
|
@ -169,9 +169,23 @@ namespace Emby.Common.Implementations.HttpClientManager
|
|||
AddRequestHeaders(httpWebRequest, options);
|
||||
|
||||
#if NET46
|
||||
httpWebRequest.AutomaticDecompression = options.EnableHttpCompression ?
|
||||
(options.DecompressionMethod ?? DecompressionMethods.Deflate) :
|
||||
DecompressionMethods.None;
|
||||
if (options.EnableHttpCompression)
|
||||
{
|
||||
if (options.DecompressionMethod.HasValue)
|
||||
{
|
||||
httpWebRequest.AutomaticDecompression = options.DecompressionMethod.Value == CompressionMethod.Gzip
|
||||
? DecompressionMethods.GZip
|
||||
: DecompressionMethods.Deflate;
|
||||
}
|
||||
else
|
||||
{
|
||||
httpWebRequest.AutomaticDecompression = DecompressionMethods.Deflate;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpWebRequest.AutomaticDecompression = DecompressionMethods.None;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue