Merge pull request #60 from MycroftAI/bugfix/encode-ssh-key
encode the SSH key passed to the API to handle special characterspull/61/head
commit
e32f9178d7
|
@ -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