diff --git a/functions/proxy.js b/functions/proxy.js index 9605df29..f2b0640d 100644 --- a/functions/proxy.js +++ b/functions/proxy.js @@ -26,6 +26,7 @@ async function fetchProxy(request) { }); } else { let method = request.method; + const header = JSON.parse(decodeURIComponent(request.headers.get('risu-header') ?? 'null')) ?? request.headers let requestHeaders = new Headers(request.headers); let originalResponse = await fetch(urlParam, { diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 1e3d4cf7..e83f4217 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "RisuAI", - "version": "1.10.0" + "version": "1.10.1" }, "tauri": { "allowlist": { diff --git a/src/ts/database.ts b/src/ts/database.ts index 52ae8300..ce356b4c 100644 --- a/src/ts/database.ts +++ b/src/ts/database.ts @@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash'; export const DataBase = writable({} as any as Database) export const loadedStore = writable(false) -export let appVer = '1.10.0' +export let appVer = '1.10.1' export function setDatabase(data:Database){ diff --git a/src/ts/globalApi.ts b/src/ts/globalApi.ts index a5e1c4bb..c45cc31a 100644 --- a/src/ts/globalApi.ts +++ b/src/ts/globalApi.ts @@ -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 }) diff --git a/version.json b/version.json index 77925ad4..7d2f17cb 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{"version":"1.10.0"} \ No newline at end of file +{"version":"1.10.1"} \ No newline at end of file