mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-08-28 01:23:28 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
645e03b89c | ||
|
|
aa302bc09e |
9
index.js
9
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;
|
||||
options.method = "GET";
|
||||
}
|
||||
var options = endpoint.endpoint ? endpoint : {};
|
||||
options.uri = "https://steamcommunity.com" + url + "/" + (endpoint.endpoint || endpoint);
|
||||
options.method = "GET";
|
||||
|
||||
if (form) {
|
||||
options.method = "POST";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "steamcommunity",
|
||||
"version": "3.35.0",
|
||||
"version": "3.35.1",
|
||||
"description": "Provides an interface for logging into and interacting with the Steam Community website",
|
||||
"keywords": [
|
||||
"steam",
|
||||
|
||||
Reference in New Issue
Block a user