Skip to content

Commit

Permalink
Changed api calls to HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNielsenDev committed Sep 14, 2022
1 parent 16a375d commit a972b0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions BetterOverwatch/Networking/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal static bool FetchNetworks()
{
using (WebClient client = new WebClient())
{
byte[] response = client.UploadValues($"http://api.{AppData.initalize.Host}/network/", new NameValueCollection
byte[] response = client.UploadValues($"https://api.{AppData.initalize.Host}/network/", new NameValueCollection
{
{ "version", AppData.settings.networkVersion.ToString() }
});
Expand Down Expand Up @@ -81,7 +81,7 @@ internal static void VerifyToken()
{
using (WebClient client = new WebClient())
{
byte[] response = client.UploadValues($"http://api.{AppData.initalize.Host}/verify-account/", new NameValueCollection
byte[] response = client.UploadValues($"https://api.{AppData.initalize.Host}/verify-account/", new NameValueCollection
{
{ "privateToken", AppData.settings.privateToken }
});
Expand Down Expand Up @@ -117,7 +117,7 @@ internal static bool FetchBlizzardAppOffset(string version)
{
using (WebClient client = new WebClient())
{
byte[] response = client.UploadValues($"http://api.{AppData.initalize.Host}/fetch-offset/", new NameValueCollection
byte[] response = client.UploadValues($"https://api.{AppData.initalize.Host}/fetch-offset/", new NameValueCollection
{
{ "version", version }
});
Expand Down Expand Up @@ -230,7 +230,7 @@ internal static void UploadGame(string gameData)
{
using (WebClient client = new WebClient())
{
byte[] response = client.UploadValues($"http://api.{AppData.initalize.Host}/game/upload/", new NameValueCollection {
byte[] response = client.UploadValues($"https://api.{AppData.initalize.Host}/game/upload/", new NameValueCollection {
{ "gameData", gameData }
});
ServerOutput.TokensOutput result = JsonConvert.DeserializeObject<ServerOutput.TokensOutput>(Encoding.UTF8.GetString(response));
Expand Down
2 changes: 1 addition & 1 deletion BetterOverwatch/TrayMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private void OpenMatchHistory(object sender, EventArgs e)
{
if (!AppData.settings.publicToken.Equals(string.Empty))
{
Process.Start($"http://{AppData.initalize.Host}/user/{AppData.settings.publicToken}");
Process.Start($"https://{AppData.initalize.Host}/user/{AppData.settings.publicToken}");
}
}
private async void LoginLogout(object sender, EventArgs e)
Expand Down

0 comments on commit a972b0b

Please sign in to comment.