We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff6bc7 commit 25869d1Copy full SHA for 25869d1
src/corelib/OpenStackNet.cs
@@ -60,13 +60,16 @@ public static void Configure(Action<FlurlHttpConfigurationOptions> configureFlur
60
61
FlurlHttp.Configure(c =>
62
{
63
- // Apply our default settings
64
- c.HttpClientFactory = new AuthenticatedHttpClientFactory();
65
-
66
// Apply the application's default settings
67
if (configureFlurl != null)
68
configureFlurl(c);
69
+ //
+ // Apply our default settings
70
+ if(c.HttpClientFactory is DefaultHttpClientFactory)
71
+ c.HttpClientFactory = new AuthenticatedHttpClientFactory();
72
+
73
// Apply our event handling without clobbering any application level handlers
74
var applicationBeforeCall = c.BeforeCall;
75
c.BeforeCall = call =>
0 commit comments