Yet another username extraction fix. Thanks again @demimismo.

Closes #100 (yet again)
This commit is contained in:
Sandro Santilli 2014-01-09 16:46:47 +01:00
parent fcd17692ee
commit 4ee4492490

View File

@ -281,7 +281,7 @@ module.exports = function(){
sql = sql.join(';'); sql = sql.join(';');
var dbName = req.params.dbname; var dbName = req.params.dbname;
var usr = req.headers.host.split('.')[0]; var usr = this.userByReq(req);
var key = req.params.map_key; var key = req.params.map_key;
var cacheKey = dbName + ':' + token; var cacheKey = dbName + ':' + token;