From 9f94374e98ea7a2912036cdc419df02b9c973b34 Mon Sep 17 00:00:00 2001 From: Leo-768 <66005818+Leo-768@users.noreply.github.com> Date: Mon, 17 Jun 2024 01:51:44 +0800 Subject: [PATCH] Fix the bug that fillRequestOptions() does not respect method option (#73) --- 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'; }