Use headers from fake request

This commit is contained in:
Raul Ochoa 2015-04-28 16:10:30 +02:00
parent 7b4d41464f
commit 1f3a073f21

View File

@ -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'