diff --git a/UmlautAdaptarr/Properties/launchSettings.json b/UmlautAdaptarr/Properties/launchSettings.json index 9677901..37160f1 100644 --- a/UmlautAdaptarr/Properties/launchSettings.json +++ b/UmlautAdaptarr/Properties/launchSettings.json @@ -3,8 +3,7 @@ "http": { "commandName": "Project", "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development", - "SETTINGS__ApiKey": "test123" + "ASPNETCORE_ENVIRONMENT": "Development" }, "_launchUrl": "optionsTODO/example.com/api?t=movie&apikey=132&imdbid=123&limit=100", "dotnetRunMessages": true, diff --git a/UmlautAdaptarr/Services/HttpProxyService.cs b/UmlautAdaptarr/Services/HttpProxyService.cs index e7f58dd..2920cf5 100644 --- a/UmlautAdaptarr/Services/HttpProxyService.cs +++ b/UmlautAdaptarr/Services/HttpProxyService.cs @@ -42,7 +42,7 @@ namespace UmlautAdaptarr.Services var bytesRead = await clientStream.ReadAsync(buffer); var requestString = Encoding.ASCII.GetString(buffer, 0, bytesRead); - if (_options.ApiKey != null) + if (!string.IsNullOrEmpty(_options.ApiKey)) { var headers = ParseHeaders(buffer, bytesRead);