Skip to content

Commit

Permalink
fix api test
Browse files Browse the repository at this point in the history
  • Loading branch information
bao-qian committed Dec 19, 2019
1 parent 376ecf7 commit 6e4a85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wox.Core/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private static async Task<UpdateManager> GitHubUpdateManager(string repository)
{
var uri = new Uri(repository);
var api = $"https://api.github.com/repos{uri.AbsolutePath}/releases";

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var json = await Http.Get(api);

var releases = JsonConvert.DeserializeObject<List<GithubRelease>>(json);
Expand Down

0 comments on commit 6e4a85f

Please sign in to comment.