diff --git a/src/ts/globalApi.ts b/src/ts/globalApi.ts index a24cf0ad..e3309c72 100644 --- a/src/ts/globalApi.ts +++ b/src/ts/globalApi.ts @@ -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 })