From 40fad44aa2238cac28a59aa1b43d892e73b0e09d Mon Sep 17 00:00:00 2001 From: Leo-768 <66005818+Leo-768@users.noreply.github.com> Date: Sat, 8 Jun 2024 19:24:38 +0800 Subject: [PATCH] Fix the bug that fillRequestOptions() does not respect method option --- src/core.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core.ts b/src/core.ts index 3cd4ee6..757802f 100644 --- a/src/core.ts +++ b/src/core.ts @@ -38,6 +38,9 @@ export class Request { } getMethod() { + if (this.requestParams.method !== undefined) { + return this.requestParams.method; + } if (this.apiParams.action === 'query') { return 'get'; }