CDB-3256 Adds response and method references to fake request object
This commit is contained in:
parent
cb781aeb00
commit
4cf1ddd6fc
@ -557,6 +557,8 @@ var CartodbWindshaft = function(serverOptions) {
|
|||||||
if ( err ) throw err;
|
if ( err ) throw err;
|
||||||
layergroup = instance;
|
layergroup = instance;
|
||||||
fakereq = { query: {}, params: {}, headers: _.clone(req.headers),
|
fakereq = { query: {}, params: {}, headers: _.clone(req.headers),
|
||||||
|
method: req.method,
|
||||||
|
res: res,
|
||||||
profiler: req.profiler
|
profiler: req.profiler
|
||||||
};
|
};
|
||||||
ws.setDBParams(cdbuser, fakereq.params, this);
|
ws.setDBParams(cdbuser, fakereq.params, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user