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}`;