fix bug
This commit is contained in:
parent
ffa9e77c81
commit
cc784cdd38
@ -49,9 +49,6 @@ namespace Inotify.Controllers
|
||||
sendTemplate.IsActive = sendAuthInfo.Active;
|
||||
sendTemplate.AuthToTemplate(sendAuthInfo.AuthData);
|
||||
userSendTemplates.Add(sendTemplate);
|
||||
}
|
||||
if (barkTemplateAttribute.Key == sendTemplate.Type)
|
||||
{
|
||||
sendTemplate.Values.FirstOrDefault(e => e.Name == nameof(BarkSendTemplate.Auth.SendUrl)).Value = "";
|
||||
}
|
||||
}
|
||||
|
@ -237,9 +237,12 @@ namespace Inotify.Sends
|
||||
{
|
||||
if (IsUrl(url) && IsImage(url))
|
||||
{
|
||||
WebClient mywebclient = new WebClient();
|
||||
using (WebClient mywebclient = new WebClient())
|
||||
{
|
||||
return mywebclient.DownloadData(url);
|
||||
}
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user