[fix] header not applied to normal fetch (#68)

This commit is contained in:
kwaroran
2023-05-17 15:29:23 +09:00
committed by GitHub

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
})