mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-22 15:15:19 +00:00
specify the correct Accept-Encoding headers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -13,7 +14,11 @@ namespace Octokit.Internal
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, "request");
|
||||
|
||||
var httpOptions = new HttpClientHandler { AllowAutoRedirect = request.AllowAutoRedirect };
|
||||
var httpOptions = new HttpClientHandler
|
||||
{
|
||||
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate,
|
||||
AllowAutoRedirect = request.AllowAutoRedirect
|
||||
};
|
||||
|
||||
var http = new HttpClient(httpOptions)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user