move Notifiarr to header auth from url auth

pull/3062/head
Bakerboy448 2 years ago
parent d8407e74e7
commit 021d265e23

@ -59,8 +59,9 @@ namespace NzbDrone.Core.Notifications.Notifiarr
try try
{ {
var instanceName = _configFileProvider.InstanceName; var instanceName = _configFileProvider.InstanceName;
var requestBuilder = new HttpRequestBuilder(URL + "/api/v1/notification/lidarr/" + settings.APIKey).Post(); var requestBuilder = new HttpRequestBuilder(URL + "/api/v1/notification/lidarr/").Post();
requestBuilder.AddFormParameter("instanceName", instanceName).Build(); requestBuilder.AddFormParameter("instanceName", instanceName).Build();
requestBuilder.SetHeader("X-API-Key", settings.APIKey);
foreach (string key in message.Keys) foreach (string key in message.Keys)
{ {

Loading…
Cancel
Save