Merge pull request #60 from MycroftAI/bugfix/encode-ssh-key

encode the SSH key passed to the API to handle special characters
pull/61/head
Chris Veilleux 2021-08-17 23:24:26 -05:00 committed by GitHub
commit e32f9178d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {