mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
Add default http client
This commit is contained in:
18
MediaBrowser.Common/Net/DefaultHttpClientHandler.cs
Normal file
18
MediaBrowser.Common/Net/DefaultHttpClientHandler.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Default http client handler.
|
||||
/// </summary>
|
||||
public class DefaultHttpClientHandler : HttpClientHandler
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public DefaultHttpClientHandler()
|
||||
{
|
||||
// TODO change to DecompressionMethods.All with .NET5
|
||||
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user