encode the SSH key passed to the API to handle special characters

pull/60/head
Chris Veilleux 2021-08-17 19:22:56 -05:00
parent 4ca23a4a04
commit 4d089be162
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ export class DeviceService {
}
validateSshKey(sshKey: string): Observable<any> {
return this.http.get<Observable<any>>(sshKeyUrl + '/' + sshKey);
return this.http.get<Observable<any>>(sshKeyUrl, {params: {key: encodeURIComponent(sshKey)}});
}
getGeographies() {