From cc08fa1323ceefa5026f297a1f0cd99903281a92 Mon Sep 17 00:00:00 2001 From: Joseph Canero Date: Tue, 3 Oct 2017 17:28:26 -0400 Subject: [PATCH] need to add the query parameter to the url. --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index e44b9d0..5795a71 100644 --- a/src/utils.js +++ b/src/utils.js @@ -37,7 +37,7 @@ module.exports.getTileUrls = function (req, domains, path, format, aliases, opti var key = req.query.key; var queryParams = []; if (req.query[options.auth.keyName]) { - queryParams.push(options.auth.keyName + '=' + req.query); + queryParams.push(options.auth.keyName + '=' + req.query[options.auth.keyName]); } if (req.query.style) { queryParams.push('style=' + req.query.style);