10000 Change to an opt-out model for the managed implementation · wtf3505-git/libgit2sharp@86be042 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86be042

Browse files
committed
Change to an opt-out model for the managed implementation
1 parent 7ca3791 commit 86be042

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

LibGit2Sharp/GlobalSettings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static class GlobalSettings
2222
private static bool nativeLibraryPathLocked;
2323
private static string nativeLibraryDefaultPath;
2424

25-
private static bool useManagedHttpSmartSubtransport;
25+
private static bool useManagedHttpSmartSubtransport = true;
2626

2727
internal class SmartSubtransportData
2828
{
@@ -541,11 +541,11 @@ public static string GetUserAgent()
541541
}
542542

543543
/// <summary>
544-
/// Enables the managed http implementation. This is enabled autmatically on Linux, so this method is only needed when running on Windows or macOS.
544+
/// Enables the native http implementation. This can only be enabled on Windows or macOS.
545545
/// </summary>
546-
public static void UseManagedHttpSmartSubtransport()
546+
public static void UseNativeHttpTransport()
547547
{
548-
useManagedHttpSmartSubtransport = true;
548+
useManagedHttpSmartSubtransport = false;
549549
}
550550
}
551551
}

0 commit comments

Comments
 (0)
0