Send referer when fetching inventories

This commit is contained in:
Alexander Corn 2016-12-13 00:50:29 -05:00
parent f1afcd1962
commit d0af8584c1

View File

@ -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'