Fixed various profile url requests

This commit is contained in:
Alex Corn 2018-04-01 23:35:56 -04:00
parent 1c0f8d4bca
commit aa302bc09e

View File

@ -458,12 +458,9 @@ SteamCommunity.prototype._myProfile = function(endpoint, form, callback) {
} }
function completeRequest(url) { function completeRequest(url) {
var options = {}; var options = endpoint.endpoint ? endpoint : {};
if (endpoint.endpoint) { options.uri = "https://steamcommunity.com" + url + "/" + (endpoint.endpoint || endpoint);
options = endpoint;
options.uri = "https://steamcommunity.com" + url + "/" + endpoint.endpoint;
options.method = "GET"; options.method = "GET";
}
if (form) { if (form) {
options.method = "POST"; options.method = "POST";