This commit is contained in:
Daniel García Aubert 2020-05-26 16:31:53 +02:00
parent aff5c9a614
commit f82232194c

View File

@ -4,7 +4,9 @@ module.exports = function clientHeader () {
return function clientHeaderMiddleware (req, res, next) {
const { client } = req.query;
res.set('Carto-Client', client);
if (client) {
res.set('Carto-Client', client);
}
return next();
};