[fix] header not applied to normal fetch
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user