Skip to content

Commit

Permalink
Fix the bug that fillRequestOptions() does not respect method option
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-768 authored Jun 8, 2024
1 parent 5975811 commit 40fad44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export class Request {
}

getMethod() {
if (this.requestParams.method !== undefined) {
return this.requestParams.method;
}
if (this.apiParams.action === 'query') {
return 'get';
}
Expand Down

0 comments on commit 40fad44

Please sign in to comment.