Skip to content

Commit

Permalink
fixed wrong parameters variable
Browse files Browse the repository at this point in the history
when adding a params object, the request was sent to "url?[Object object]"
  • Loading branch information
bitomic committed Nov 6, 2020
1 parent e5e5af7 commit 7a484af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ axiod.request = ({

// Add params to Request Config Url
if (_params) {
url = urlJoin(url, `?${params}`);
url = urlJoin(url, `?${_params}`);
}

// Add body to Request Config
Expand Down

0 comments on commit 7a484af

Please sign in to comment.