steamutils 1.1.47 → 1.1.49
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5443,13 +5443,15 @@ class SteamUser {
|
|
5443
5443
|
const result = await this._httpRequest({
|
5444
5444
|
url: `tradeoffer/new/send`,
|
5445
5445
|
headers: {
|
5446
|
-
Referer: tradeURL
|
5446
|
+
Referer: tradeURL,
|
5447
|
+
accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
|
5448
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
5447
5449
|
},
|
5448
5450
|
data: {
|
5449
5451
|
serverid: 1,
|
5450
5452
|
partner: SteamID.fromIndividualAccountID(tradeURLParams.partner).getSteamID64(),
|
5451
5453
|
tradeoffermessage,
|
5452
|
-
|
5454
|
+
json_tradeoffer: JSON.stringify({
|
5453
5455
|
newversion: true,
|
5454
5456
|
version: 3,
|
5455
5457
|
me,
|