Skip to content

Commit

Permalink
fix(client): append query params to url
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddarth committed Jul 27, 2020
1 parent 163224c commit da8a81c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ export class AuthlessClient {
}
}
}
const body = AuthlessClient.makeParams(params)
const query = AuthlessClient.makeParams(params)
try {
const response = await fetch(params.serverUrl, {
const response = await fetch(`${params.serverUrl}?${query}`, {
method: 'GET',
body
})
let data: any = ''
if(params.responseFormat === 'json') {
Expand Down

0 comments on commit da8a81c

Please sign in to comment.