fix an unintended text error

add async await to download manifest task
remove unused encoding name for new GetStreamAsync in Http
fix unintened text error
This commit is contained in:
弘韬 张 2020-12-29 13:03:38 +08:00
parent f0267475f5
commit 5da8259228
3 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ namespace Flow.Launcher.Infrastructure.Http
return content;
}
public static async Task<Stream> GetStreamAsync([NotNull] string url, string encoding = "UTF-8")
public static async Task<Stream> GetStreamAsync([NotNull] string url)
{
Log.Debug($"|Http.Get|Url <{url}>");
var request = WebRequest.CreateHttp(url);

View file

@ -12,7 +12,7 @@ namespace Flow.Launcher.Plugin.PluginsManager.Models
internal List<UserPlugin> UserPlugins { get; private set; }
internal PluginsManifest()
{
Task.Run(() => DownloadManifest()).Wait();
Task.Run(async () => await DownloadManifest()).Wait();
}
internal async Task DownloadManifest()

View file

@ -12,6 +12,6 @@ namespace Flow.Launcher.Plugin.PluginsManager
internal string HotkeyUpdate { get; set; } = "update";
internal readonly string icoPath = "Images\\pluginsmanager.png";
}
}
}