Fix wrong check for empty api key again -_-

This commit is contained in:
pcjones
2025-01-13 23:14:10 +01:00
parent d2eaac7a6c
commit 37673f8a6c

View File

@@ -130,7 +130,7 @@ namespace UmlautAdaptarr.Services
var url = _configuration["Kestrel:Endpoints:Http:Url"];
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}";
using var client = _clientFactory.CreateClient();