Fix adding additional ssh-keys via UI
Adding additional SSH-keys for service users failed, since the content
type was not correctly set, when calling the rest API interface.
Change-Id: I815e4c44d4963f47708b2337a62e22a8d6afaf41
diff --git a/src/main/resources/static/gr-serviceuser-ssh-panel.js b/src/main/resources/static/gr-serviceuser-ssh-panel.js
index 59f307f..c12bace 100644
--- a/src/main/resources/static/gr-serviceuser-ssh-panel.js
+++ b/src/main/resources/static/gr-serviceuser-ssh-panel.js
@@ -87,7 +87,7 @@
this.$.addButton.disabled = true;
this.$.newKey.disabled = true;
return this._restApi.post(`${this._serviceUser._account_id}/sshkeys`,
- this._newKey.trim(), 'plain/text')
+ this._newKey.trim(), null, 'plain/text')
.then(key => {
this.push('_keys', key);
}).catch(() => {