Skip to content

Commit

Permalink
Encode URL before making request
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
marcusolsson committed Mar 5, 2021
1 parent 4e3660a commit 1f66b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class Api {
});

const req: BackendSrvRequest = {
url: `${this.baseUrl}${path}`,
url: encodeURI(this.baseUrl + path),
method,
headers: recordHeaders,
};
Expand Down

0 comments on commit 1f66b56

Please sign in to comment.