14 lines
271 B
JavaScript
14 lines
271 B
JavaScript
'use strict';
|
|
|
|
module.exports = function clientHeader () {
|
|
return function clientHeaderMiddleware (req, res, next) {
|
|
const { client } = req.query;
|
|
|
|
if (client) {
|
|
res.set('Carto-Client', client);
|
|
}
|
|
|
|
return next();
|
|
};
|
|
};
|