Fix wrong check for empty api key again -_-
This commit is contained in:
@@ -130,7 +130,7 @@ namespace UmlautAdaptarr.Services
|
|||||||
var url = _configuration["Kestrel:Endpoints:Http:Url"];
|
var url = _configuration["Kestrel:Endpoints:Http:Url"];
|
||||||
var port = new Uri(url).Port;
|
var port = new Uri(url).Port;
|
||||||
|
|
||||||
var apiKey = _options.ApiKey == null ? "_" : _options.ApiKey;
|
var apiKey = string.IsNullOrEmpty(_options.ApiKey) ? "_" : _options.ApiKey;
|
||||||
|
|
||||||
var modifiedUri = $"http://localhost:{port}/{apiKey}/{uri.Host}{uri.PathAndQuery}";
|
var modifiedUri = $"http://localhost:{port}/{apiKey}/{uri.Host}{uri.PathAndQuery}";
|
||||||
using var client = _clientFactory.CreateClient();
|
using var client = _clientFactory.CreateClient();
|
||||||
|
|||||||
Reference in New Issue
Block a user