From 6ee39d20283326b414e20a0980bd6b98580504b3 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Fri, 30 Jan 2026 17:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E8=87=B3?= =?UTF-8?q?=200.0.35=EF=BC=8C=E4=BC=98=E5=8C=96=20fetchFile=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=BB=A5=E6=94=AF=E6=8C=81=E9=A2=9D=E5=A4=96=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- query/query-resources/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5e6fef5..bd73eff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/api", - "version": "0.0.34", + "version": "0.0.35", "description": "", "main": "mod.ts", "scripts": { diff --git a/query/query-resources/index.ts b/query/query-resources/index.ts index 1ca49b5..e9d9989 100644 --- a/query/query-resources/index.ts +++ b/query/query-resources/index.ts @@ -60,7 +60,7 @@ export class QueryResources { } async fetchFile(filepath: string, opts?: DataOpts): Promise> { const url = `${this.prefix}${filepath}`; - return this.get({}, { url, method: 'GET', headers: this.header(opts?.headers, false), isText: true }); + return this.get({}, { url, method: 'GET', ...opts, headers: this.header(opts?.headers, false), isText: true }); } async uploadFile(filepath: string, content: string | Blob, opts?: DataOpts): Promise> { const pathname = `${this.prefix}${filepath}`;