From e9fbfbfcfc708233ddf9b2ec390a55b30ed372ab Mon Sep 17 00:00:00 2001 From: Todd Date: Wed, 18 Oct 2023 13:55:00 -0500 Subject: [PATCH] bug with redirects + settings hierarchy --- src/Flurl.Http/Configuration/FlurlHttpSettings.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Flurl.Http/Configuration/FlurlHttpSettings.cs b/src/Flurl.Http/Configuration/FlurlHttpSettings.cs index 6ac730b9..760bbc4b 100644 --- a/src/Flurl.Http/Configuration/FlurlHttpSettings.cs +++ b/src/Flurl.Http/Configuration/FlurlHttpSettings.cs @@ -173,8 +173,8 @@ public void ResetDefaults() { internal T Get([CallerMemberName]string propName = null) { IEnumerable prioritize() { yield return HttpTest.Current?.Settings; - yield return this; - yield return Parent; + for (var settings = this; settings != null; settings = settings.Parent) + yield return settings; yield return Defaults; }