Use headers from fake request
This commit is contained in:
parent
7b4d41464f
commit
1f3a073f21
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user