Skip to content

Commit

Permalink
[#2324] Don't "normalize" resource URL in recline view
Browse files Browse the repository at this point in the history
Turns https into http
  • Loading branch information
amercader committed Feb 26, 2015
1 parent 1f85e9d commit 87870be
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ckanext/reclinepreview/theme/public/preview_recline.js
Expand Up @@ -46,7 +46,6 @@ this.ckan.module('reclinepreview', function (jQuery, _) {
// b) csv or xls (but not datastore)
resourceData.formatNormalized = this.normalizeFormat(resourceData.format);

resourceData.url = this.normalizeUrl(resourceData.url);
if (resourceData.formatNormalized === '') {
var tmp = resourceData.url.split('/');
tmp = tmp[tmp.length - 1];
Expand Down Expand Up @@ -149,13 +148,6 @@ this.ckan.module('reclinepreview', function (jQuery, _) {
out = out.split('/');
out = out[out.length-1];
return out;
},
normalizeUrl: function (url) {
if (url.indexOf('https') === 0) {
return 'http' + url.slice(5);
} else {
return url;
}
}
};
});

0 comments on commit 87870be

Please sign in to comment.