added 'accept' header to API calls for faster response times, updated deps and compat date
This commit is contained in:
parent
0a1e2fbe90
commit
c09a27e99b
4 changed files with 316 additions and 123 deletions
5
main.js
5
main.js
|
|
@ -39,7 +39,10 @@ async function gw_api_call(method, params) {
|
|||
cookies += `; sid=${sid}`
|
||||
}
|
||||
|
||||
const headers = new Headers({ 'cookie': cookies })
|
||||
const headers = new Headers({
|
||||
'cookie': cookies,
|
||||
'accept': '*/*',
|
||||
})
|
||||
|
||||
const init = {
|
||||
method: 'POST',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue