mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
Switch from HttpClientHandler to SocketsHttpHandler
SocketsHttpHandler is the default for .Net Core 2.1 and newer Set RequestHeaderEncoding to UTF-8 by default
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
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()
|
||||
{
|
||||
AutomaticDecompression = DecompressionMethods.All;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user