mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-31 03:22:31 +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) {
|
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";
|
||||||
|
Loading…
Reference in New Issue
Block a user