From d0af8584c1533c6a2b5ac111edc686cf3d0e9bf8 Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Tue, 13 Dec 2016 00:50:29 -0500 Subject: [PATCH] Send referer when fetching inventories --- components/users.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/users.js b/components/users.js index eadd190..d70815b 100644 --- a/components/users.js +++ b/components/users.js @@ -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'