Under if
This commit is contained in:
parent
aff5c9a614
commit
f82232194c
@ -4,7 +4,9 @@ module.exports = function clientHeader () {
|
|||||||
return function clientHeaderMiddleware (req, res, next) {
|
return function clientHeaderMiddleware (req, res, next) {
|
||||||
const { client } = req.query;
|
const { client } = req.query;
|
||||||
|
|
||||||
|
if (client) {
|
||||||
res.set('Carto-Client', client);
|
res.set('Carto-Client', client);
|
||||||
|
}
|
||||||
|
|
||||||
return next();
|
return next();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user