From 369eb339171671101be219486e2aab27a20f3d74 Mon Sep 17 00:00:00 2001 From: sephrat <34862846+sephrat@users.noreply.github.com> Date: Wed, 7 Sep 2022 16:58:56 +0200 Subject: [PATCH] fix(webhook): Remove added trailing slash from webhook URL #4710 --- src/Ombi.Api.Webhook/WebhookApi.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ombi.Api.Webhook/WebhookApi.cs b/src/Ombi.Api.Webhook/WebhookApi.cs index f2faaa18b..7a5d1d611 100644 --- a/src/Ombi.Api.Webhook/WebhookApi.cs +++ b/src/Ombi.Api.Webhook/WebhookApi.cs @@ -19,8 +19,8 @@ namespace Ombi.Api.Webhook public async Task PushAsync(string baseUrl, string accessToken, IDictionary parameters) { - var request = new Request("", baseUrl, HttpMethod.Post); - + var request = new Request("", baseUrl, HttpMethod.Post) {IgnoreBaseUrlAppend = true}; + if (!string.IsNullOrWhiteSpace(accessToken)) { request.AddHeader("Access-Token", accessToken);