a4a100e65a
added headers to the test-client callback to be able to check them
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();
|
|
};
|
|
};
|