From 6c69ba54dbe95fc65aca9bf0ea6ebebdf351a3a6 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 22 Nov 2016 16:44:06 +0100 Subject: [PATCH] Use actual CDN url for HTTP and HTTPS --- lib/cartodb/controllers/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index f3be4589..a84fcf75 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -477,7 +477,7 @@ MapController.prototype.getUrlsFromTemplate = function(username, resource) { if (this.resourcesUrlTemplates.http) { urls.http = this.resourcesUrlTemplates.http({ - cdn_url: cdnUrl, + cdn_url: cdnUrl.http, user: username, port: global.environment.port, resource: resource @@ -486,7 +486,7 @@ MapController.prototype.getUrlsFromTemplate = function(username, resource) { if (this.resourcesUrlTemplates.https) { urls.https = this.resourcesUrlTemplates.https({ - cdn_url: cdnUrl, + cdn_url: cdnUrl.https, user: username, port: global.environment.port, resource: resource