Add test to check the headers exist while instantiating a map

This commit is contained in:
Daniel García Aubert
2020-05-26 16:28:44 +02:00
parent ddefb1a6ca
commit aff5c9a614
3 changed files with 118 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
'use strict';
module.exports = function clientHeader () {
return function clientHeaderMiddleware (req, res, next) {
const { client } = req.query;
res.set('Carto-Client', client);
return next();
};
};