Skip to content

Commit

Permalink
Remove extraneous double slash from api.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Apr 17, 2022
1 parent 83710de commit f43f006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const defaultHeaders = {

class HttpClient {
constructor(baseUrl, tokenProvider) {
this.baseUrl = new URL(`https://${baseUrl.replace(/^(https?:\/\/)/, '')}`).toString();
this.baseUrl = new URL(`https://${baseUrl.replace(/^(https?:\/\/)/, '')}`).toString().replace(/\/$/, '');
this.tokenProvider = tokenProvider;

const client = axios.create({ baseURL: this.baseUrl });
Expand Down

0 comments on commit f43f006

Please sign in to comment.