CDB-3256 Adds response and method references to fake request object

This commit is contained in:
Raul Ochoa 2014-06-24 15:52:47 +02:00
parent cb781aeb00
commit 4cf1ddd6fc

View File

@ -557,6 +557,8 @@ var CartodbWindshaft = function(serverOptions) {
if ( err ) throw err;
layergroup = instance;
fakereq = { query: {}, params: {}, headers: _.clone(req.headers),
method: req.method,
res: res,
profiler: req.profiler
};
ws.setDBParams(cdbuser, fakereq.params, this);