mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-02-07 22:59:35 +08:00
Send referer when fetching inventories
This commit is contained in:
parent
f1afcd1962
commit
d0af8584c1
@ -269,6 +269,9 @@ SteamCommunity.prototype.getUserInventory = function(userID, appID, contextID, t
|
||||
function get(inventory, currency, step, start) {
|
||||
self.httpRequest({
|
||||
"uri": "https://steamcommunity.com/inventory/" + userID.getSteamID64() + "/" + appID + "/" + contextID,
|
||||
"headers": {
|
||||
"Referer": "https://steamcommunity.com/profiles/" + userID.getSteamID64() + "/inventory"
|
||||
},
|
||||
"qs": {
|
||||
"l": "english", // Default language
|
||||
"count": 5000, // Max items per 'page'
|
||||
|
Loading…
Reference in New Issue
Block a user