mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
20 lines
591 B
C#
20 lines
591 B
C#
using System.Net;
|
|
using System.Net.Http;
|
|
|
|
namespace MediaBrowser.Common.Net
|
|
{
|
|
/// <summary>
|
|
/// Default http client handler.
|
|
/// </summary>
|
|
public class DefaultHttpClientHandler : HttpClientHandler
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="DefaultHttpClientHandler"/> class.
|
|
/// </summary>
|
|
public DefaultHttpClientHandler()
|
|
{
|
|
// TODO change to DecompressionMethods.All with .NET5
|
|
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
|
|
}
|
|
}
|
|
}
|