mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
!wip removed trailing slash from mattermost request url to fix notifications not sending
This commit is contained in:
parent
e8249fa1a8
commit
612e689a8c
2 changed files with 14 additions and 3 deletions
|
@ -120,8 +120,10 @@ namespace Ombi.Api.Mattermost.Models
|
|||
var attIndex = outMessages[msgCount].Attachments.Count - 1;
|
||||
|
||||
//Get the text lines
|
||||
lines = att.Text.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
|
||||
|
||||
if (!String.IsNullOrEmpty(att.Text))
|
||||
{
|
||||
lines = att.Text.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
|
||||
}
|
||||
foreach (var line in lines)
|
||||
{
|
||||
//Get the total length of all attachments on the current outgoing message
|
||||
|
@ -155,6 +157,7 @@ namespace Ombi.Api.Mattermost.Models
|
|||
{
|
||||
var request = new Request("", _webhookUrl.ToString(), HttpMethod.Post);
|
||||
request.AddJsonBody(msg);
|
||||
request.AddHeader("Host", _webhookUrl.Host);
|
||||
await api.Request(request);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue