encode the SSH key passed to the API to handle special characters
parent
4ca23a4a04
commit
4d089be162
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue