mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-09-05 23:04:53 +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) {
|
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.method = "GET";
|
||||||
options.uri = "https://steamcommunity.com" + url + "/" + endpoint.endpoint;
|
|
||||||
options.method = "GET";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (form) {
|
if (form) {
|
||||||
options.method = "POST";
|
options.method = "POST";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "steamcommunity",
|
"name": "steamcommunity",
|
||||||
"version": "3.35.0",
|
"version": "3.35.1",
|
||||||
"description": "Provides an interface for logging into and interacting with the Steam Community website",
|
"description": "Provides an interface for logging into and interacting with the Steam Community website",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"steam",
|
"steam",
|
||||||
|
|||||||
Reference in New Issue
Block a user