Fix 403 spam

This commit is contained in:
Natsumi
2021-04-04 23:51:25 +12:00
parent 0e326faecc
commit eb8e1a7e7f

View File

@@ -344,9 +344,6 @@ speechSynthesis.getVoices();
var init = {
url: `https://api.vrchat.cloud/api/1/${endpoint}`,
method: 'GET',
headers: {
'User-Agent': `VRCX ${$app.appVersion}`
},
...options
};
var { params } = init;
@@ -375,6 +372,10 @@ speechSynthesis.getVoices();
? JSON.stringify(params)
: '{}';
}
init.headers = {
'User-Agent': $app.appVersion,
...init.headers
};
var req = webApiService.execute(init).catch((err) => {
this.$throw(0, err);
}).then((response) => {