Add test to check the headers exist while instantiating a map
This commit is contained in:
@@ -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();
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user