steamutils 1.1.82 → 1.1.84
Sign up to get free protection for your applications and to get access to all the features.
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/steamutils.iml +1 -1
- package/.idea/vcs.xml +1 -1
- package/index.js +5 -2
- package/package.json +1 -1
package/.idea/steamutils.iml
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
<module type="WEB_MODULE" version="4">
|
3
3
|
<component name="NewModuleRootManager">
|
4
4
|
<content url="file://$MODULE_DIR$">
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
6
5
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
7
7
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
8
8
|
</content>
|
9
9
|
<orderEntry type="inheritedJdk" />
|
package/.idea/vcs.xml
CHANGED
package/index.js
CHANGED
@@ -1564,13 +1564,13 @@ class SteamUser {
|
|
1564
1564
|
checkTooManyRequest = true
|
1565
1565
|
await sleep(30000)
|
1566
1566
|
} else if (response.status === 401) {
|
1567
|
-
console.log('Unauthorized')
|
1567
|
+
console.log('Unauthorized', config.url)
|
1568
1568
|
if (params.method.toUpperCase() === 'POST') {
|
1569
1569
|
config.headers['Content-Type'] = config.headers['content-type'] = 'multipart/form-data'
|
1570
1570
|
retry = 1
|
1571
1571
|
}
|
1572
1572
|
} else {
|
1573
|
-
console.log(response.status);
|
1573
|
+
console.log(response.status, config.url);
|
1574
1574
|
}
|
1575
1575
|
}
|
1576
1576
|
return response
|
@@ -3390,6 +3390,9 @@ class SteamUser {
|
|
3390
3390
|
const { data } = await this._httpRequestAjax({
|
3391
3391
|
url: 'actions/GroupInvite',
|
3392
3392
|
data: params,
|
3393
|
+
headers: {
|
3394
|
+
'content-type': 'application/x-www-form-urlencoded'
|
3395
|
+
},
|
3393
3396
|
method: 'POST',
|
3394
3397
|
})
|
3395
3398
|
return data
|