[refactor] header in one

This commit is contained in:
kwaroran
2023-05-17 15:19:53 +09:00
parent 2d45a74470
commit 8224a256ca
5 changed files with 7 additions and 4 deletions

View File

@@ -369,7 +369,9 @@ export async function globalFetch(url:string, arg:{body?:any,headers?:{[key:stri
const da = await fetch(furl, {
body: JSON.stringify(arg.body),
headers: arg.headers,
headers: {
"risu-header": encodeURIComponent(JSON.stringify(arg.headers))
},
method: method
})