From 37673f8a6c59ee738663b28e169cf29f56cd53c2 Mon Sep 17 00:00:00 2001 From: pcjones Date: Mon, 13 Jan 2025 23:14:10 +0100 Subject: [PATCH] Fix wrong check for empty api key again -_- --- UmlautAdaptarr/Services/HttpProxyService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UmlautAdaptarr/Services/HttpProxyService.cs b/UmlautAdaptarr/Services/HttpProxyService.cs index 2920cf5..19e935e 100644 --- a/UmlautAdaptarr/Services/HttpProxyService.cs +++ b/UmlautAdaptarr/Services/HttpProxyService.cs @@ -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();