mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-30 19:00:28 +08:00
Fixed various profile url requests
This commit is contained in:
parent
1c0f8d4bca
commit
aa302bc09e
7
index.js
7
index.js
@ -458,12 +458,9 @@ SteamCommunity.prototype._myProfile = function(endpoint, form, callback) {
|
||||
}
|
||||
|
||||
function completeRequest(url) {
|
||||
var options = {};
|
||||
if (endpoint.endpoint) {
|
||||
options = endpoint;
|
||||
options.uri = "https://steamcommunity.com" + url + "/" + endpoint.endpoint;
|
||||
var options = endpoint.endpoint ? endpoint : {};
|
||||
options.uri = "https://steamcommunity.com" + url + "/" + (endpoint.endpoint || endpoint);
|
||||
options.method = "GET";
|
||||
}
|
||||
|
||||
if (form) {
|
||||
options.method = "POST";
|
||||
|
Loading…
Reference in New Issue
Block a user