Windshaft-cartodb/lib/api/middlewares/client-header.js
Daniel García Aubert f82232194c Under if
2020-05-26 16:31:53 +02:00

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();
};
};