base and analyses controller
This commit is contained in:
parent
4a2cc6a5f8
commit
f824fc5243
@ -44,7 +44,7 @@ AnalysesController.prototype.catalog = function (req, res, next) {
|
||||
|
||||
step(
|
||||
function catalogQuery() {
|
||||
var pg = new PSQL(dbParamsFromReqParams(req.params));
|
||||
var pg = new PSQL(dbParamsFromReqParams(res.locals.db));
|
||||
getMetadata(username, pg, this);
|
||||
},
|
||||
function prepareResponse(err, results) {
|
||||
|
@ -7,8 +7,8 @@ module.exports = BaseController;
|
||||
|
||||
// jshint maxcomplexity:9
|
||||
BaseController.prototype.send = function(req, res, body, status, headers) {
|
||||
if (req.params.dbhost) {
|
||||
res.set('X-Served-By-DB-Host', req.params.dbhost);
|
||||
if (res.locals.db.dbhost) {
|
||||
res.set('X-Served-By-DB-Host', res.locals.db.dbhost);
|
||||
}
|
||||
|
||||
res.set('X-Tiler-Profiler', req.profiler.toJSONString());
|
||||
|
Loading…
Reference in New Issue
Block a user