From 49a71650524c3c26e99566e39adc18d6e98ae9ff Mon Sep 17 00:00:00 2001 From: makss Date: Mon, 29 Apr 2024 16:40:01 +0300 Subject: [PATCH] Reduce Steam redirects --- classes/CSteamUser.js | 2 +- components/groups.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/CSteamUser.js b/classes/CSteamUser.js index 8b26516..af0a5d3 100644 --- a/classes/CSteamUser.js +++ b/classes/CSteamUser.js @@ -13,7 +13,7 @@ SteamCommunity.prototype.getSteamUser = function(id, callback) { } var self = this; - this.httpRequest("http://steamcommunity.com/" + (typeof id === 'string' ? "id/" + id : "profiles/" + id.toString()) + "/?xml=1", function(err, response, body) { + this.httpRequest("https://steamcommunity.com/" + (typeof id === 'string' ? "id/" + id : "profiles/" + id.toString()) + "/?xml=1", function(err, response, body) { if (err) { callback(err); return; diff --git a/components/groups.js b/components/groups.js index 1897767..4afecbb 100644 --- a/components/groups.js +++ b/components/groups.js @@ -11,17 +11,17 @@ SteamCommunity.prototype.getGroupMembers = function(gid, callback, members, link if (!link) { if (typeof gid !== 'string') { // It's a SteamID object - link = "http://steamcommunity.com/gid/" + gid.toString() + "/memberslistxml/?xml=1"; + link = "https://steamcommunity.com/gid/" + gid.toString() + "/memberslistxml/?xml=1"; } else { try { var sid = new SteamID(gid); if (sid.type == SteamID.Type.CLAN && sid.isValid()) { - link = "http://steamcommunity.com/gid/" + sid.getSteamID64() + "/memberslistxml/?xml=1"; + link = "https://steamcommunity.com/gid/" + sid.getSteamID64() + "/memberslistxml/?xml=1"; } else { throw new Error("Doesn't particularly matter what this message is"); } } catch (e) { - link = "http://steamcommunity.com/groups/" + gid + "/memberslistxml/?xml=1"; + link = "https://steamcommunity.com/groups/" + gid + "/memberslistxml/?xml=1"; } } }