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 ab119f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Ocelot Logo](/images/ocelot_logo.png)

[![CircleCI](https://circleci.com/gh/ThreeMammals/Ocelot/tree/main.svg?style=svg)](https://circleci.com/gh/ThreeMammals/Ocelot/tree/main)
[![.NET](https://github.com/ThreeMammals/Ocelot/actions/workflows/dotnet.yml/badge.svg)](https://github.com/ThreeMammals/Ocelot/actions/workflows/dotnet.yml)

<!-- [![Coverage Status](https://coveralls.io/repos/github/ThreeMammals/Ocelot/badge.svg)](https://coveralls.io/github/ThreeMammals/Ocelot) -->

Expand Down
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 ab119f8

Please sign in to comment.