fix(webhook): Remove added trailing slash from webhook URL #4710

pull/4753/head
sephrat 2 years ago committed by GitHub
parent bce6f4c2f3
commit 369eb33917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,8 +19,8 @@ namespace Ombi.Api.Webhook
public async Task PushAsync(string baseUrl, string accessToken, IDictionary<string, string> parameters) public async Task PushAsync(string baseUrl, string accessToken, IDictionary<string, string> parameters)
{ {
var request = new Request("", baseUrl, HttpMethod.Post); var request = new Request("", baseUrl, HttpMethod.Post) {IgnoreBaseUrlAppend = true};
if (!string.IsNullOrWhiteSpace(accessToken)) if (!string.IsNullOrWhiteSpace(accessToken))
{ {
request.AddHeader("Access-Token", accessToken); request.AddHeader("Access-Token", accessToken);

Loading…
Cancel
Save