Skip to content

Commit 1f66b56

Browse files
committed
Encode URL before making request
Fixes #59
1 parent 4e3660a commit 1f66b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default class Api {
114114
});
115115

116116
const req: BackendSrvRequest = {
117-
url: `${this.baseUrl}${path}`,
117+
url: encodeURI(this.baseUrl + path),
118118
method,
119119
headers: recordHeaders,
120120
};

0 commit comments

Comments
 (0)