Fix error message on missing requested signature

We don't really distinguish between missing or non-authorizing
signature. And that's fine. See #170
This commit is contained in:
Sandro Santilli
2014-03-03 18:14:17 +01:00
parent 40a254922a
commit 30eb939dc7
3 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -138,10 +138,10 @@ suite('multilayer', function() {
headers: {host: 'localhost' },
encoding: 'binary'
}, {}, function(res) {
assert.equal(res.statusCode, 403, res.statusCode + ':' + res.body);
assert.equal(res.statusCode, 401, res.statusCode + ':' + res.body);
var parsed = JSON.parse(res.body);
var msg = parsed.error; // TODO: should it be "errors" ?
assert.ok(msg.match(/no authorization left/i), msg);
assert.ok(msg.match(/permission denied/i), msg);
next(err);
});
},