浏览代码

禁用压缩

xljiulang 4 年之前
父节点
当前提交
fa150fa3e8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      FastGithub.Http/HttpClientHandler.cs

+ 2 - 0
FastGithub.Http/HttpClientHandler.cs

@@ -2,6 +2,7 @@
 using System.Collections;
 using System.Collections;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.Linq;
 using System.Linq;
+using System.Net;
 using System.Net.Http;
 using System.Net.Http;
 using System.Net.Security;
 using System.Net.Security;
 using System.Net.Sockets;
 using System.Net.Sockets;
@@ -39,6 +40,7 @@ namespace FastGithub.Http
                 Proxy = null,
                 Proxy = null,
                 UseProxy = false,
                 UseProxy = false,
                 AllowAutoRedirect = false,
                 AllowAutoRedirect = false,
+                AutomaticDecompression = DecompressionMethods.None,
                 ConnectCallback = async (context, cancellationToken) =>
                 ConnectCallback = async (context, cancellationToken) =>
                 {
                 {
                     var socket = new Socket(SocketType.Stream, ProtocolType.Tcp);
                     var socket = new Socket(SocketType.Stream, ProtocolType.Tcp);