Add tests for getting metadata (#183)

... and fix forbidden metadata response
This commit is contained in:
Sandro Santilli
2012-10-05 17:08:24 +02:00
parent f021093504
commit 8a759babf0
2 changed files with 55 additions and 2 deletions
+2 -2
View File
@@ -135,8 +135,8 @@ module.exports = function(){
that.req2params(req, this);
},
function(err, data){
if (err) throw err;
cartoData.getMapMetadata(data, callback);
if (err) callback(err, null);
else cartoData.getMapMetadata(data, callback);
}
);
};