REST: Fix bad content type description

plain/text instead of text/plain

Change-Id: I6da9851c0d7416962843ab23794702c0caef95a1
This commit is contained in:
Orgad Shaneh
2019-11-29 11:41:54 +02:00
parent 6fce81cb92
commit fd808eb872
3 changed files with 3 additions and 3 deletions

View File

@@ -791,7 +791,7 @@ key is persisted.
.Request .Request
---- ----
POST /accounts/self/sshkeys HTTP/1.0 POST /accounts/self/sshkeys HTTP/1.0
Content-Type: plain/text Content-Type: text/plain
AAAAB3NzaC1yc2EAAAABIwAAAQEA0T...YImydZAw\u003d\u003d AAAAB3NzaC1yc2EAAAABIwAAAQEA0T...YImydZAw\u003d\u003d
---- ----

View File

@@ -277,7 +277,7 @@ final class SetAccountCommand extends SshCommand {
PermissionBackendException { PermissionBackendException {
for (String sshKey : sshKeys) { for (String sshKey : sshKeys) {
SshKeyInput in = new SshKeyInput(); SshKeyInput in = new SshKeyInput();
in.raw = RawInputUtil.create(sshKey.getBytes(UTF_8), "plain/text"); in.raw = RawInputUtil.create(sshKey.getBytes(UTF_8), "text/plain");
addSshKey.apply(rsrc, in); addSshKey.apply(rsrc, in);
} }
} }

View File

@@ -2668,7 +2668,7 @@
method: 'POST', method: 'POST',
url: '/accounts/self/sshkeys', url: '/accounts/self/sshkeys',
body: key, body: key,
contentType: 'plain/text', contentType: 'text/plain',
reportUrlAsIs: true, reportUrlAsIs: true,
}; };
return this._send(req) return this._send(req)