1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-25 18:32:20 -05:00

[WO-531] use query parameter instead of JSON parameter

This commit is contained in:
Felix Hammerl 2014-09-12 19:23:02 +02:00
parent ec5edff626
commit 15710f4602
2 changed files with 2 additions and 8 deletions

View File

@ -124,10 +124,7 @@ define(function() {
}
this._restDao.get({
uri: '/privatekey/user/' + options.userId + '/key/' + options.keyId,
payload: {
ignoreRecovery: true
}
uri: '/privatekey/user/' + options.userId + '/key/' + options.keyId + '?ignoreRecovery=true',
}, function(err) {
// 404: there is no encrypted private key on the server
if (err && err.code !== 200) {

View File

@ -179,10 +179,7 @@ define(function(require) {
var keyId = '12345';
restDaoStub.get.withArgs({
uri: '/privatekey/user/' + emailAddress + '/key/' + keyId,
payload: {
ignoreRecovery: true
}
uri: '/privatekey/user/' + emailAddress + '/key/' + keyId + '?ignoreRecovery=true'
}).yields();
privkeyDao.hasPrivateKey({