Use actual CDN url for HTTP and HTTPS

This commit is contained in:
Raul Ochoa 2016-11-22 16:44:06 +01:00
parent 49f9904d00
commit 6c69ba54db

View File

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