From 1f3a073f21df9741d6628646601ab1ffacfd4d39 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 28 Apr 2015 16:10:30 +0200 Subject: [PATCH] Use headers from fake request --- lib/cartodb/controllers/named_static_maps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/controllers/named_static_maps.js b/lib/cartodb/controllers/named_static_maps.js index 1054873d..1703fdc2 100644 --- a/lib/cartodb/controllers/named_static_maps.js +++ b/lib/cartodb/controllers/named_static_maps.js @@ -163,7 +163,7 @@ NamedStaticMapsController.prototype.named = function(req, res) { assert.ifError(err); var staticImageReq = { - headers: _.clone(req.headers), + headers: _.clone(fakeReq.headers), params: _.extend(_.clone(fakeReq.params), { token: layergroupId, format: 'png'