default value in errors header

This commit is contained in:
Simon Martín 2017-11-27 17:04:50 +01:00
parent e7b8d9b223
commit 60e4defa66

View File

@ -409,6 +409,12 @@ function setupLogger(app, opts) {
};
app.use(global.log4js.connectLogger(global.log4js.getLogger(), _.defaults(loggerOpts, {level: 'info'})));
}
// default X-Tiler-Errors header
app.use((req, res, next) => {
res.set('X-Tiler-Errors', '{}');
next();
});
}
function surrogateKeysCacheBackends(serverOptions) {