[fix] header not applied to normal fetch

This commit is contained in:
kwaroran
2023-05-17 15:29:01 +09:00
parent c805a81d97
commit d74ffb2489

View File

@@ -495,7 +495,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
})