Skip to content

Commit

Permalink
Test new CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
raman-m committed Jan 23, 2025
1 parent c0afa42 commit 58bb8c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Ocelot/Middleware/BaseUrlFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public string Find()
var baseUrl = _config.GetValue(key, string.Empty);

// Falls back to memory config then finally default..
return string.IsNullOrEmpty(baseUrl) ? _config.GetValue("BaseUrl", "http://localhost:5000") : baseUrl;
return string.IsNullOrEmpty(baseUrl)
? _config.GetValue(nameof(FileGlobalConfiguration.BaseUrl), "http://localhost:5000")
: baseUrl;
}
}

0 comments on commit 58bb8c0

Please sign in to comment.