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) {
|
||||
const { client } = req.query;
|
||||
|
||||
res.set('Carto-Client', client);
|
||||
if (client) {
|
||||
res.set('Carto-Client', client);
|
||||
}
|
||||
|
||||
return next();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user