return headers

This commit is contained in:
Matias Alejo Garcia 2014-12-01 16:19:34 -03:00
commit b096fd50a7
5 changed files with 10 additions and 10 deletions

View file

@ -20,7 +20,7 @@ EncryptedInsightStorage.prototype._brokenDecrypt = function(body) {
EncryptedInsightStorage.prototype.getItem = function(name, callback) {
var self = this;
InsightStorage.prototype.getItem.apply(this, [name,
function(err, body) {
function(err, body, headers) {
if (err) {
return callback(err);
}
@ -35,7 +35,7 @@ EncryptedInsightStorage.prototype.getItem = function(name, callback) {
log.debug('Could not decrypt value.');
return callback('PNOTFOUND');
}
return callback(null, decryptedJson);
return callback(null, decryptedJson, headers);
}
]);
};