From 831120ce7fb7256ae76e00d3b797d28a2a6047c0 Mon Sep 17 00:00:00 2001 From: NetherGranite Date: Sat, 20 Apr 2024 16:23:08 -0600 Subject: [PATCH] Add UriReplacementHandler as a default handler so it works out of the box --- src/KiotaClientFactory.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/KiotaClientFactory.cs b/src/KiotaClientFactory.cs index 5dd9498..6c7d1ec 100644 --- a/src/KiotaClientFactory.cs +++ b/src/KiotaClientFactory.cs @@ -8,6 +8,7 @@ using System.Net.Http; using Microsoft.Kiota.Abstractions.Authentication; using Microsoft.Kiota.Http.HttpClientLibrary.Middleware; +using Microsoft.Kiota.Http.HttpClientLibrary.Middleware.Options; namespace Microsoft.Kiota.Http.HttpClientLibrary { @@ -36,6 +37,7 @@ public static IList CreateDefaultHandlers() return new List { //add the default middlewares as they are ready + new UriReplacementHandler(), new RetryHandler(), new RedirectHandler(), new ParametersNameDecodingHandler(),