REST: Fix bad content type description
plain/text instead of text/plain Change-Id: I6da9851c0d7416962843ab23794702c0caef95a1
This commit is contained in:
@@ -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
|
||||||
----
|
----
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user