mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-02-08 02:22:45 +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) {
|
function get(inventory, currency, step, start) {
|
||||||
self.httpRequest({
|
self.httpRequest({
|
||||||
"uri": "https://steamcommunity.com/inventory/" + userID.getSteamID64() + "/" + appID + "/" + contextID,
|
"uri": "https://steamcommunity.com/inventory/" + userID.getSteamID64() + "/" + appID + "/" + contextID,
|
||||||
|
"headers": {
|
||||||
|
"Referer": "https://steamcommunity.com/profiles/" + userID.getSteamID64() + "/inventory"
|
||||||
|
},
|
||||||
"qs": {
|
"qs": {
|
||||||
"l": "english", // Default language
|
"l": "english", // Default language
|
||||||
"count": 5000, // Max items per 'page'
|
"count": 5000, // Max items per 'page'
|
||||||
|
Loading…
Reference in New Issue
Block a user