mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
drop unused code related to PORTABLE flag (#2202)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user