drop unused code related to PORTABLE flag (#2202)

This commit is contained in:
Brendan Forster
2020-06-08 08:33:27 -03:00
committed by GitHub
parent d02a230172
commit 08e7c14ced
4 changed files with 7 additions and 51 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ namespace Octokit.Internal
#if HAS_SERVICEPOINTMANAGER
// GitHub API requires TLS1.2 as of February 2018
//
//
// .NET Framework before 4.6 did not enable TLS1.2 by default
//
// Even though this is an AppDomain wide setting, the decision was made for Octokit to
@@ -99,7 +99,7 @@ namespace Octokit.Internal
object responseBody = null;
string contentType = null;
// We added support for downloading images,zip-files and application/octet-stream.
// We added support for downloading images,zip-files and application/octet-stream.
// Let's constrain this appropriately.
var binaryContentTypes = new[] {
AcceptHeaders.RawContentMediaType,
+3 -2
View File
@@ -19,17 +19,18 @@ namespace Octokit.Internal
{
AllowAutoRedirect = false
};
#if !PORTABLE
if (handler.SupportsAutomaticDecompression)
{
handler.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
}
if (handler.SupportsProxy && proxy != null)
{
handler.UseProxy = true;
handler.Proxy = proxy;
}
#endif
return handler;
}
}