Skip to content

Commit

Permalink
fix: extendOptions fail on method (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjsh36 authored Dec 26, 2019
1 parent 5db96ac commit ed430f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,6 @@ export function mergeRequestOptions(options, options2Merge) {
...getParamObject(options.params),
...getParamObject(options2Merge.params),
},
method: (options.method || options2Merge.method || 'get').toLowerCase(),
method: (options2Merge.method || options.method || 'get').toLowerCase(),
};
}

0 comments on commit ed430f8

Please sign in to comment.