Skip to content

Commit

Permalink
bug with redirects + settings hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd committed Oct 18, 2023
1 parent a52ca82 commit e9fbfbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Flurl.Http/Configuration/FlurlHttpSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ public void ResetDefaults() {
internal T Get<T>([CallerMemberName]string propName = null) {
IEnumerable<FlurlHttpSettings> 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;
}

Expand Down

0 comments on commit e9fbfbf

Please sign in to comment.