encode the SSH key passed to the API to handle special characters
(cherry picked from commit 4d089be162
)
pull/60/head
parent
ec8896f394
commit
883c2118bd
|
@ -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