From 79955c7fac961976403b2fed3e71a5e4be83ed4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 22 Mar 2018 18:27:40 +0100 Subject: [PATCH] Pass only needed params to tile backend --- lib/cartodb/controllers/layergroup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cartodb/controllers/layergroup.js b/lib/cartodb/controllers/layergroup.js index 6a807474..63da4947 100644 --- a/lib/cartodb/controllers/layergroup.js +++ b/lib/cartodb/controllers/layergroup.js @@ -543,7 +543,10 @@ function getTile (tileBackend, profileLabel = 'tile') { req.profiler.start(`windshaft.${profileLabel}`); const { mapConfigProvider } = res.locals; - const params = getRequestParams(res.locals); + const { token } = res.locals; + const { layer, z, x, y, format } = req.params; + + const params = { token, layer, z, x, y, format }; tileBackend.getTile(mapConfigProvider, params, (err, tile, headers, stats = {}) => { req.profiler.add(stats);